mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Initialize animval. Fixes crash in town.
This commit is contained in:
@@ -406,6 +406,7 @@ CCastleInterface::CCastleInterface(const CGTownInstance * Town)
|
||||
hBuild = NULL;
|
||||
count=0;
|
||||
town = Town;
|
||||
animval = 0;
|
||||
|
||||
//garrison
|
||||
garr = new CGarrisonInt(pos.x+305,pos.y+387,4,32,townInt,243,13,town,town->visitingHero);
|
||||
|
Reference in New Issue
Block a user