1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Slight tweaking of logging of h3m edge cases

This commit is contained in:
Ivan Savenko
2023-04-11 17:46:08 +03:00
parent f84665b5ec
commit 2c2c2c8fe0
2 changed files with 137 additions and 136 deletions

View File

@@ -118,7 +118,8 @@ class DLL_LINKAGE BinaryDeserializer : public CLoaderBase
{
ui32 length;
load(length);
if(length > 500000)
//NOTE: also used for h3m's embedded in campaigns, so it may be quite large in some cases (e.g. XXL maps with multiple objects)
if(length > 1000000)
{
logGlobal->warn("Warning: very big length: %d", length);
reader->reportState(logGlobal);