Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Smaug bug (http://www.topmudsites.com/forums/showthread.php?t=495)

Samson 10-23-2002 06:57 AM

Hey, lookie what I found while scouring code, a genuine bug that nobody seems to have addressed yet!

act_wiz.c, do_vsearch:

if (argi<0 && argi>20000)
{
send_to_char( "Vnum out of range.\n\r", ch);
return;
}

See the problem? argi cannot be BOTH less than 0 AND greater than 20000, so this check will always drop through to the code below. Simple fix. Change the && to || and recompile. Of course you'll also want to make sure that 20000 is an appropriate upper bounds for your mud.

This appears to be present in 1.02a, 1.4a, and every other derivitive I've been able to find. Apparently such an obscure command nobody ever noticed it before.


All times are GMT -4. The time now is 03:05 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022