1 | /* |
1 | /* |
2 | * static char *rcsid_friend_c = |
2 | * static char *rcsid_friend_c = |
3 | * "$Id: friend.C,v 1.2 2006/08/29 08:01:35 root Exp $"; |
3 | * "$Id: friend.C,v 1.3 2006/08/31 17:54:14 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
87 | /* This should not happen. But if it does, presumably the |
87 | /* This should not happen. But if it does, presumably the |
88 | * call to remove it is still valid. |
88 | * call to remove it is still valid. |
89 | */ |
89 | */ |
90 | if (obj->id != op->count) { |
90 | if (obj->id != op->count) { |
91 | LOG(llevError,"remove_friendly_object, tags do no match, %s, %d != %d\n", |
91 | LOG(llevError,"remove_friendly_object, tags do no match, %s, %d != %d\n", |
92 | op->name?op->name:"none", op->count, obj->id); |
92 | op->name?(const char *)op->name:"none", op->count, obj->id); |
93 | } |
93 | } |
94 | prev->next = obj->next; |
94 | prev->next = obj->next; |
95 | free(obj); |
95 | free(obj); |
96 | } |
96 | } |
97 | } |
97 | } |