We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb4363e commit 1f58c37Copy full SHA for 1f58c37
Core/GameEngine/Source/Common/GameUtility.cpp
@@ -77,26 +77,20 @@ Player* getObservedOrLocalPlayer_Safe()
77
Player* player = NULL;
78
79
if (TheControlBar != NULL)
80
- {
81
player = TheControlBar->getObservedPlayer();
82
- }
83
84
if (player == NULL)
85
86
if (ThePlayerList != NULL)
87
88
player = ThePlayerList->getLocalPlayer();
89
90
+
91
return player;
92
}
93
94
PlayerIndex getObservedOrLocalPlayerIndex_Safe()
95
{
96
if (Player* player = getObservedOrLocalPlayer_Safe())
97
98
return player->getPlayerIndex();
99
100
return 0;
101
102
0 commit comments