mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Quick fix for #910.
This commit is contained in:
parent
6db3c5bc7e
commit
7e4855c271
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user