1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Few lost lines from previous commit.

This commit is contained in:
DjWarmonger
2011-02-02 19:22:37 +00:00
parent c11f7c2020
commit e684ec0c06

View File

@@ -467,6 +467,11 @@ void CCreatureHandler::loadCreatures()
{ {
int id, lvl; int id, lvl;
ifs >> id >> lvl; ifs >> id >> lvl;
if(lvl>0)
{
creatures[id]->level = lvl;
levelCreatures[lvl].push_back(creatures[id]);
}
} }
} }
ifs.close(); ifs.close();