浏览代码

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

Frank Zago 14 年之前
父节点
当前提交
5eab8339d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/CGameHandler.cpp

+ 1 - 1
server/CGameHandler.cpp

@@ -4660,7 +4660,7 @@ bool CGameHandler::castSpell(const CGHeroInstance *h, int spellID, const int3 &p
 			}
 			if (h->visitedTown)
 				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);
 		}
 		break;