mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Throw exception, detected by C4834 warning
This commit is contained in:
@@ -94,7 +94,7 @@ void SetViewedPlayer(int id)
|
||||
if (playerID == -1 || g_Game->CheatsEnabled() || g_Game->PlayerFinished(playerID) || g_Game->IsVisualReplay())
|
||||
g_Game->SetViewedPlayerID(id);
|
||||
else
|
||||
std::logic_error{"Changing the perspective with cheats disabled is prohibited"};
|
||||
throw std::logic_error{"Changing the perspective with cheats disabled is prohibited"};
|
||||
}
|
||||
|
||||
float GetSimRate()
|
||||
|
||||
Reference in New Issue
Block a user