mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +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 42 TBELUP_5.def 394 283
|
||||||
8 43 TBELUP_6.def 43 0
|
8 43 TBELUP_6.def 43 0
|
||||||
8 20 TBELBOAT.def 239 215
|
8 20 TBELBOAT.def 239 215
|
||||||
|
-1
|
||||||
|
|
||||||
|
@ -131,6 +131,8 @@ void CTownHandler::loadStructures()
|
|||||||
Structure *vinya = new Structure;
|
Structure *vinya = new Structure;
|
||||||
vinya->group = -1;
|
vinya->group = -1;
|
||||||
of >> vinya->townID;
|
of >> vinya->townID;
|
||||||
|
if (vinya->townID == -1)
|
||||||
|
break;
|
||||||
of >> vinya->ID;
|
of >> vinya->ID;
|
||||||
of >> vinya->defName;
|
of >> vinya->defName;
|
||||||
vinya->name = vinya->defName; //TODO - use normal names
|
vinya->name = vinya->defName; //TODO - use normal names
|
||||||
|
Loading…
x
Reference in New Issue
Block a user