 [Bug] Launchship sending messages to wrong/NULL rooms.
  [Bug] Launchship sending messages to wrong/NULL rooms.
 
 Pages:<< prev   1  next >>
 #1 Jul 3, 2009 12:41 am
   #1 Jul 3, 2009 12:41 am
     
   InfiniteAxis
  InfiniteAxisOff the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
  Bug: Launchship sending message to wrong room.
Danger: Minor - Launchship tries to send messages to wrong/NULL rooms.
Found by: Banner
Fixed by: Banner
---
space.c, launchship
Locate:
Replace with:
Location is set to 0 at the top of the function. So sending it to ship->location is a null room. It should be sending it to the pilot of the ship anyway.
  
  
 
Danger: Minor - Launchship tries to send messages to wrong/NULL rooms.
Found by: Banner
Fixed by: Banner
---
space.c, launchship
Locate:
echo_to_room( AT_GREEN, get_room_index( ship->location ), "Launch complete.\r\n" );
Replace with:
echo_to_room( AT_GREEN, get_room_index( ship->pilotseat ), "Launch complete.\r\n" );
Location is set to 0 at the top of the function. So sending it to ship->location is a null room. It should be sending it to the pilot of the ship anyway.
 Pages:<< prev   1  next >>
 
       
       Top Posters
      Top Posters
      Top Uploaders
      Top Uploaders
      Users Online
      Users Online
      Stats
      Stats
     
