File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3131#include " PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
3232
3333#include " Common/GameAudio.h"
34+ #include " Common/GameUtility.h"
3435#include " Common/GlobalData.h"
3536#include " Common/INI.h"
3637#include " Common/Player.h"
@@ -550,7 +551,7 @@ void SpecialPowerModule::aboutToDoSpecialPower( const Coord3D *location )
550551 // Let EVA do her thing
551552 SpecialPowerType type = getSpecialPowerModuleData ()->m_specialPowerTemplate ->getSpecialPowerType ();
552553
553- Player *localPlayer = TheControlBar-> getCurrentlyViewedPlayer ();
554+ Player *localPlayer = rts::getObservedOrLocalPlayer ();
554555 Relationship relationship = TheControlBar->getCurrentlyViewedPlayerRelationship (getObject ()->getTeam ());
555556
556557 // Only play the EVA sounds if this is not the local player, and the local player doesn't consider the
You can’t perform that action at this time.
0 commit comments