2
0
Эх сурвалжийг харах

Someone likes to put semicolons in the wrong places. Fixed.

Frank Zago 14 жил өмнө
parent
commit
5eab8339d0

+ 1 - 1
server/CGameHandler.cpp

@@ -4660,7 +4660,7 @@ bool CGameHandler::castSpell(const CGHeroInstance *h, int spellID, const int3 &p
 			}
 			}
 			if (h->visitedTown)
 			if (h->visitedTown)
 				stopHeroVisitCastle(h->visitedTown->id, h->id);
 				stopHeroVisitCastle(h->visitedTown->id, h->id);
-			if (moveHero(h->id, town->visitablePos() + h->getVisitableOffset() ,1));
+			if (moveHero(h->id, town->visitablePos() + h->getVisitableOffset() ,1))
 				heroVisitCastle(town->id, h->id);
 				heroVisitCastle(town->id, h->id);
 		}
 		}
 		break;
 		break;