|10-23-2002, 07:57 AM||#1|
Join Date: Apr 2002
Location: United Socialist States of America
Home MUD: SmaugMuds.org
Home MUD: Arthmoor MUD Hosting
Hey, lookie what I found while scouring code, a genuine bug that nobody seems to have addressed yet!
if (argi<0 && argi>20000)
send_to_char( "Vnum out of range.\n\r", ch);
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.
|Smaug bug - Similar Threads|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Looking for new and exp. players - SMAUG MUD||Greetmir||Advertising for Players||0||04-29-2005 12:39 PM|
|Chronicles/Smaug Mud||CTA||Advertising for Staff||0||05-17-2003 12:15 AM|
|SSET in SMAUG||Nostrum||Newbie Help||6||08-05-2002 07:03 PM|
|smaug||Blank Deed||Newbie Help||3||07-24-2002 12:19 PM|
|Smaug Code Help Please||Klered||MUD Coding||2||07-12-2002 10:42 PM|