summaryrefslogtreecommitdiffstats
path: root/src/core/FileLoader.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-20 15:19:33 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-20 15:19:33 +0200
commitbe8e29e4e2dede741516be156dc370376acb13a9 (patch)
tree8e68c4e5c40b69511dd2c151aa35c917c3062dea /src/core/FileLoader.cpp
parentfixed replay (diff)
parentone more fix (diff)
downloadre3-be8e29e4e2dede741516be156dc370376acb13a9.tar
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.gz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.bz2
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.lz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.xz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.zst
re3-be8e29e4e2dede741516be156dc370376acb13a9.zip
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r--src/core/FileLoader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index 450cc146..14dc91cd 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -361,10 +361,10 @@ CFileLoader::LoadClumpFile(const char *filename)
nodename = GetFrameNodeName(RpClumpGetFrame(clump));
GetNameAndLOD(nodename, name, &n);
mi = (CClumpModelInfo*)CModelInfo::GetModelInfo(name, nil);
- assert(mi->IsClump());
- if(mi)
+ if(mi){
+ assert(mi->IsClump());
mi->SetClump(clump);
- else
+ }else
RpClumpDestroy(clump);
}
}