From: Kalahn <kalahn@pobox.com>

Hi,

Found a reset bug in olc 1.7.

in olc.c: do_resets()

look for 
***********************************************
  /*
   * Inside another object.
   * ----------------------
   */
  if ( !str_prefix( arg4, "inside" ) )
  {
      OBJ_INDEX_DATA *temp;

      temp = get_obj_index(is_number(arg5) ? atoi(arg5) : 1);
      if ( ( temp->item_type != ITEM_CONTAINER ) &&
           ( temp->item_type != ITEM_CORPSE_NPC ) )
       {
         send_to_char( "Objeto 2 no es container.\n\r", ch);
         return;
       }
***********************************************
directly after the line:
      temp = get_obj_index(is_number(arg5) ? atoi(arg5) : 1);
add:
      if (!temp) /* fix by kalahn@pobox.com */
      {
          send_to_char( "Couldn't find Object 2.\n\r",ch);
          return;      
      }


That will prevent a segfault if the object you specify doesn't exist.

- Kal :)

================================================
Kalahn
Implementor/Administration
The Dawn of Time Roleplaying Mud
telnet://candyland.stwing.upenn.edu:1234
http://pobox.com/~kalahn
================================================