Throw exception, detected by C4834 warning

This commit is contained in:
Itms
2025-07-14 14:23:45 +02:00
parent 2d6d510ffa
commit 781d2b6ab6
+1 -1
View File
@@ -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()