mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-27 09:34:09 +01:00
Added NULL check when freeing room events. (thanks Ripley)
This commit is contained in:
parent
0218a5d4b9
commit
88549e0728
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ void free_mud_event(struct mud_event_data *pMudEvent)
|
|||
room = (struct room_data *) pMudEvent->pStruct;
|
||||
remove_from_list(pMudEvent->pEvent, room->events);
|
||||
|
||||
if (room->events->iSize == 0) {
|
||||
if (room->events && (room->events->iSize == 0)) {
|
||||
free_list(room->events);
|
||||
room->events = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue