diff --git a/Minecraft.Client/Common/GameRules/ConsoleSchematicFile.cpp b/Minecraft.Client/Common/GameRules/ConsoleSchematicFile.cpp index ef0ac7ed0..33b61260c 100644 --- a/Minecraft.Client/Common/GameRules/ConsoleSchematicFile.cpp +++ b/Minecraft.Client/Common/GameRules/ConsoleSchematicFile.cpp @@ -635,13 +635,13 @@ void ConsoleSchematicFile::generateSchematicFile(DataOutputStream *dos, Level *l } #ifndef _CONTENT_PACKAGE - if(p!=blockCount) // __debugbreak(); + if(p!=blockCount) return 0; #endif // We don't know how this will compress - just make a fixed length buffer to initially decompress into // Some small sets of blocks can end up compressing into something bigger than their source unsigned int inputSize = blockCount * 3 / 2; - unsigned char *ucTemp = new unsigned char[inputSize]; + unsigned char *ucTemp = new unsigned char[(size_t)inputSize]; switch(compressionType) { diff --git a/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp b/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp index d9a213628..b4e68bc6d 100644 --- a/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp @@ -390,7 +390,7 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId) break; #endif - default: // __debugbreak(); + default: return 0; } bool confirmUser = false;