From 554a1f717f60cbf5500881eaf204534b4d681d7b Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 30 Dec 2016 02:03:10 +0100 Subject: [PATCH] [IclipMap_t] Only clear runtime data if necessary --- src/Components/Modules/AssetInterfaces/IclipMap_t.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp index d1a4f881..e92ecb93 100644 --- a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp +++ b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp @@ -869,7 +869,7 @@ namespace Assets } // These mustn't be null, but they don't need to be valid. - for (int i = 0; i < 2; ++i) + for (int i = 0; i < 2 && clipMap->dynEntCount[i]; ++i) { Utils::Stream::ClearPointer(&clipMap->dynEntPoseList[i]); Utils::Stream::ClearPointer(&clipMap->dynEntClientList[i]);