You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Core/GameEngine/Include/Common/GameUtility.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Player* getObservedOrLocalPlayer(); ///< Get the current observed or local playe
34
34
Player* getObservedOrLocalPlayer_Safe(); ///< Get the current observed or local player. Is never null, except when the application does not have players.
35
35
PlayerIndex getObservedOrLocalPlayerIndex_Safe(); ///< Get the current observed or local player index. Returns 0 when the application does not have players.
36
36
37
-
voidchangeLocalPlayer(Player* player); //< Change local player during game
38
-
voidchangeObservedPlayer(Player* player); ///< Change observed player during game
37
+
voidchangeLocalPlayer(Player* player); //< Change local player during game. Must not pass null.
38
+
voidchangeObservedPlayer(Player* player); ///< Change observed player during game. Can pass null: is identical to passing the "ReplayObserver" player.
0 commit comments