Explorar o código

Few lost lines from previous commit.

DjWarmonger %!s(int64=14) %!d(string=hai) anos
pai
achega
e684ec0c06
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      hch/CCreatureHandler.cpp

+ 5 - 0
hch/CCreatureHandler.cpp

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