mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
vcmi: make some CStack properties private
There is a getters for this properties already available
This commit is contained in:
@@ -524,7 +524,7 @@ std::string BattleActionsController::actionGetStatusMessageBlocked(PossiblePlaye
|
||||
bool BattleActionsController::actionIsLegal(PossiblePlayerBattleAction action, BattleHex targetHex)
|
||||
{
|
||||
const CStack * targetStack = getStackForHex(targetHex);
|
||||
bool targetStackOwned = targetStack && targetStack->owner == owner.curInt->playerID;
|
||||
bool targetStackOwned = targetStack && targetStack->unitOwner() == owner.curInt->playerID;
|
||||
|
||||
switch (action.get())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user