diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 892ad269a..73fdaa369 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -179,7 +179,7 @@ int mob_parse_dataset(struct spawn_data *data) if (data->eventname[0]) { - if(i <= 2) + if(npc_event_isspecial(data->eventname)) { //Portable monster big/small implementation. [Skotlex] i = atoi(data->eventname); if (i) { @@ -191,7 +191,7 @@ int mob_parse_dataset(struct spawn_data *data) data->state.ai=1; data->eventname[0] = '\0'; //Clear event as it is not used. } - } else { + } else if( i ) { if (data->eventname[i-1] == '"') data->eventname[i-1] = '\0'; //Remove trailing quote. if (data->eventname[0] == '"') //Strip leading quotes |