version 1.20 | | version 1.21 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.20 2003/01/17 04:38:35 garbled Exp $"; | | * "$Id: button.c,v 1.21 2003/09/13 05:01:26 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* dereference a null value | | * dereference a null value |
*/ | | */ |
if (tmp->type == GOLEM && tmp->owner && tmp->owner->type==PLAYER && | | if (tmp->type == GOLEM && tmp->owner && tmp->owner->type==PLAYER && |
tmp->owner->contr->golem==tmp) | | tmp->owner->contr->ranges[range_golem]==tmp) { |
tmp->owner->contr->golem=NULL; | | tmp->owner->contr->ranges[range_golem]=NULL; |
| | tmp->owner->contr->golem_count = 0; |
| | } |
tmp->owner = 0; | | tmp->owner = 0; |
} | | } |
break; | | break; |