mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 11:45:58 +00:00
Fix Linux build warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user