[Circle] Mount.. returns NULL for Vict.

From: Bruce, Ray, Phil (bherbert@ns.technonet.com)
Date: 11/18/96


If someone could check this code out and tell me why this would be the
output of the command used on a MOB:

You mount <NULL>.

*** act.other.c ***
ACMD(do_mount)
{
  struct char_data *vict;

  one_argument(argument, arg);

  if (!*arg) {
    send_to_char("Mount who or what?\r\n", ch);
    return;
  } else 
  if (!(vict = get_char_room_vis(ch, arg))) {
    send_to_char("They aren't here.\r\n", ch);
    return;
  } else
  if (ch == vict) {
    send_to_char("People laugh as your jump on your own back!\r\n", ch);
    return;
  }

  if(GET_POS(ch) == POS_MOUNTED) {
    send_to_char("You are already mounted!\r\n",ch);
    return;
  }
  mount_animal(ch, vict);
  ch->riding = vict;
  vict->rider = ch;
  vict = ch->riding;
  sprintf(buf, "You mount $N.");
  act(buf , FALSE, ch, 0, 0, TO_CHAR);  
  sprintf(buf, "$n mounts $N.");
  act(buf , FALSE, ch, 0, 0, TO_ROOM);
  
}


	      *Frostiana*  BETA
		http://www.durand.net/Frostiana
		telnet://206.31.114.50:5000

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST