1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Fix target selection for teleport

This commit is contained in:
Ivan Savenko
2023-03-31 22:15:24 +03:00
parent 4c6dbb5037
commit e9aed2761c
4 changed files with 11 additions and 23 deletions

View File

@ -74,7 +74,6 @@ BattleStacksController::BattleStacksController(BattleInterface & owner):
owner(owner),
activeStack(nullptr),
stackToActivate(nullptr),
selectedStack(nullptr),
animIDhelper(0)
{
//preparing graphics for displaying amounts of creatures
@ -734,16 +733,6 @@ void BattleStacksController::activateStack()
return;
}
void BattleStacksController::setSelectedStack(const CStack *stack)
{
selectedStack = stack;
}
const CStack* BattleStacksController::getSelectedStack() const
{
return selectedStack;
}
const CStack* BattleStacksController::getActiveStack() const
{
return activeStack;