Login
User Name:

Password:



Register

Forgot your password?
SmaugFUSS 1.8/1.9
Aug 31, 2024 4:13 pm
By MADEiUM
Bug: char_check( )
Aug 31, 2024 12:27 am
By GatewaySysop
Bug: move_char( )
Aug 30, 2024 3:52 am
By GatewaySysop
Bug: spell_animate_dead
Aug 25, 2024 10:48 pm
By GatewaySysop
ROOM_NO_MAGIC Inconsistencies...
Jul 8, 2024 12:32 am
By GatewaySysop
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
Bing, Elwood, Google

Members: 1
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
489
3,802
19,680
614
DevinMims

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » AFKMud Bugfix List » [Bug] mptrlook command crashe...
Forum Rules | Mark all | Recent Posts

[Bug] mptrlook command crashes with an empty target room argument
< Newer Topic :: Older Topic > AFKMud 2.02

Pages:<< prev 1 next >>
Post is unread #1 Nov 23, 2007 12:59 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,689
JoinedJan 1, 2002

 
Bug: mptrlook command crashes with an empty target room argument
Danger: High - Crash bug. A missing room argument crashes the game.
Discovered in: AFKMud 2.02
Found by: Samson
Fixed by: Samson

---

mud_comm.cpp, do_mptrlook

Locate:
   if( arg2 && arg2[0] == '\0' )
      location = ch->in_room;


Change to:
   if( !arg2 || arg2[0] == '\0' )
      location = ch->in_room;


The ifcheck in this small chunk is meant to see if the arg2 value is empty, blank, or otherwise invalid and default to using the room the PC is in as the target. However the check is setup wrong and would actually result in a crash condition if the argument is empty because the location value is then never assigned.

Pages:<< prev 1 next >>