mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-06 08:01:47 +01:00
Events bug fixed.
This commit is contained in:
parent
620adcc8bb
commit
cabfb3013e
3 changed files with 21 additions and 0 deletions
|
|
@ -172,3 +172,22 @@ struct mud_event_data * char_has_mud_event(struct char_data * ch, event_id iId)
|
|||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void clear_char_event_list(struct char_data * ch)
|
||||
{
|
||||
struct event * pEvent;
|
||||
|
||||
if (ch->events == NULL)
|
||||
return;
|
||||
|
||||
if (ch->events->iSize == 0)
|
||||
return;
|
||||
|
||||
simple_list(NULL);
|
||||
|
||||
while ((pEvent = (struct event *) simple_list(ch->events)) != NULL) {
|
||||
event_cancel(pEvent);
|
||||
}
|
||||
|
||||
simple_list(NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue