1
0
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:
Frank Zago
2009-05-29 13:43:33 +00:00
parent 7a89b33ab7
commit e3bfc51328

View File

@@ -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);