version 1.32 | | version 1.33 |
---|
| | |
/* | | /* |
* static char *rcsid_pets_c = | | * static char *rcsid_pets_c = |
* "$Id: pets.c,v 1.32 2005/07/29 17:20:30 qal21 Exp $"; | | * "$Id: pets.c,v 1.33 2005/08/01 20:36:25 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *get_real_owner(object *ob) { | | object *get_real_owner(object *ob) { |
object *realowner = ob; | | object *realowner = ob; |
| | |
if (realowner == NULL) return 0; | | if (realowner == NULL) return NULL; |
| | |
while(realowner->owner != NULL) | | while(get_owner(realowner) != NULL) |
{ | | { |
realowner = realowner->owner; | | realowner = get_owner(realowner); |
} | | } |
return realowner; | | return realowner; |
} | | } |