From d6ce7559b9318181ce121482c57e8f01a609251c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 23 Sep 2015 17:10:59 -1000 Subject: [PATCH] Crash fix for MP3 resource indexing --- DataSpec/DNAMP3/MREA.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DataSpec/DNAMP3/MREA.cpp b/DataSpec/DNAMP3/MREA.cpp index f434bf2fa..10b2b503e 100644 --- a/DataSpec/DNAMP3/MREA.cpp +++ b/DataSpec/DNAMP3/MREA.cpp @@ -332,9 +332,12 @@ bool MREA::ExtractLayerDeps(PAKEntryReadStream& rs, PAKBridge::Level::Area& area DEPS deps; deps.read(drs); + printf("%d\n", deps.depLayerCount); unsigned r=0; for (unsigned l=1 ; l areaOut.layers.size()) + break; PAKBridge::Level::Area::Layer& layer = areaOut.layers.at(l-1); layer.resources.reserve(deps.depLayers[l] - r); for (; r