summaryrefslogtreecommitdiff
path: root/src/game-server/monstermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/monstermanager.cpp')
-rw-r--r--src/game-server/monstermanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp
index a8239b8d..d7a840e7 100644
--- a/src/game-server/monstermanager.cpp
+++ b/src/game-server/monstermanager.cpp
@@ -104,10 +104,10 @@ void MonsterManager::reload()
continue;
}
- int id = XML::getProperty(node, "id", 0);
+ int id = XML::getProperty(node, "id", -1);
std::string name = XML::getProperty(node, "name", "unnamed");
- if (id == 0)
+ if (id == -1)
{
LOG_WARN("Monster Manager: There is a monster ("<<name<<") without ID in "
<< monsterReferenceFile << "! It has been ignored.");