Browse Source

Initialize animval. Fixes crash in town.

Frank Zago 16 years ago
parent
commit
e3bfc51328
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client/CCastleInterface.cpp

+ 1 - 0
client/CCastleInterface.cpp

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