浏览代码

Quick fix for #910.

DjWarmonger 13 年之前
父节点
当前提交
7e4855c271
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/CPlayerInterface.cpp

+ 2 - 2
client/CPlayerInterface.cpp

@@ -1250,8 +1250,8 @@ bool CPlayerInterface::altPressed() const
 
 void CPlayerInterface::showGarrisonDialog( const CArmedInstance *up, const CGHeroInstance *down, bool removableUnits, boost::function<void()> &onEnd )
 {
-	if(stillMoveHero.get() == DURING_MOVE  &&  adventureInt->terrain.currentPath->nodes.size() > 1) //to ignore calls on passing through garrisons
-	{
+	if(stillMoveHero.get() == DURING_MOVE  && adventureInt->terrain.currentPath && adventureInt->terrain.currentPath->nodes.size() > 1) //to ignore calls on passing through garrisons
+	{ //FIXME: why there is no currentPath at game start?
 		onEnd();
 		return;
 	}