[IclipMap_t] Only clear runtime data if necessary

This commit is contained in:
momo5502 2016-12-30 02:03:10 +01:00
parent 055591ccbb
commit 554a1f717f

View File

@ -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]);