Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug
- To: crossfire (at) ifi.uio.no
- Subject: Bug
- From: "Eric A. Anderson" <>
- Date: Sat, 27 Feb 1993 22:24:16 -0500 (EST)
I don't know how it gets set to a loop. This will yank it out.
-Eric
*** object.c.~1~ Tue Feb 16 16:38:11 1993
--- object.c Sat Feb 27 22:22:49 1993
***************
*** 50,56 ****
a better check */
object *is_player_inv (object *op) {
! for (;op!=NULL&&op->type!=PLAYER; op=op->env);
return op;
}
--- 50,58 ----
a better check */
object *is_player_inv (object *op) {
! for (;op!=NULL&&op->type!=PLAYER; op=op->env)
! if (op->env==op)
! op->env = NULL;
return op;
}
-Eric
*********************************************************
"It seemed like a good idea at the time"
-The Mad Hatter
"Yes, you're very smart. Shut up."
-In "The Princess Bride"
*********************************************************