1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-15 13:33:36 +02:00

Fixed buildings parsing.

This commit is contained in:
Frank Zago 2010-02-06 18:46:25 +00:00
parent b670979cab
commit 090cc602b6
2 changed files with 4 additions and 0 deletions

View File

@ -347,3 +347,5 @@
8 42 TBELUP_5.def 394 283
8 43 TBELUP_6.def 43 0
8 20 TBELBOAT.def 239 215
-1

View File

@ -131,6 +131,8 @@ void CTownHandler::loadStructures()
Structure *vinya = new Structure;
vinya->group = -1;
of >> vinya->townID;
if (vinya->townID == -1)
break;
of >> vinya->ID;
of >> vinya->defName;
vinya->name = vinya->defName; //TODO - use normal names