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:
parent
b670979cab
commit
090cc602b6
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user