Fix Linux build warnings

This commit is contained in:
notmatthewbeshay
2026-03-14 04:37:55 +11:00
parent 44ade1f2b2
commit 0249bfd2bf
47 changed files with 183 additions and 60 deletions

View File

@@ -406,7 +406,7 @@ void LevelRenderer::allChanged(int playerIndex)
// If this CS is entered before DisableUpdateThread is called then (on 360 at least) we can get a
// deadlock when starting a game in splitscreen.
//EnterCriticalSection(&m_csDirtyChunks);
if( level == NULL )
if( level[playerIndex] == NULL )
{
return;
}
@@ -473,7 +473,7 @@ void LevelRenderer::allChanged(int playerIndex)
}
nonStackDirtyChunksAdded();
if (level != NULL)
if (level[playerIndex] != NULL)
{
std::shared_ptr<Entity> player = mc->cameraTargetPlayer;
if (player != NULL)