diff options
Diffstat (limited to 'src/map/mob.cpp')
-rw-r--r-- | src/map/mob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp index ebd336f..cd548a4 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -76,7 +76,7 @@ int mobdb_searchname(MobName str) int mobdb_checkid(const int id) { if (id <= 0 || id >= (sizeof(mob_db) / sizeof(mob_db[0])) - || mob_db[id].name[0] == '\0') + || !mob_db[id].name) return 0; return id; |