mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
fix releasing obstacle pointer
This commit is contained in:
parent
5226081f33
commit
9eaa136c58
@ -1084,11 +1084,10 @@ int CGameHandler::moveStack(int stack, BattleHex dest)
|
|||||||
//if stack didn't die in explosion, continue movement
|
//if stack didn't die in explosion, continue movement
|
||||||
if(obs->stopsMovement() || !curStack->alive())
|
if(obs->stopsMovement() || !curStack->alive())
|
||||||
{
|
{
|
||||||
obs.reset();
|
|
||||||
|
|
||||||
//movement has been interrupted by obstacle
|
//movement has been interrupted by obstacle
|
||||||
stackIsMoving = false;
|
stackIsMoving = false;
|
||||||
}
|
}
|
||||||
|
obs.reset();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user