modelinfo bits

This commit is contained in:
aap
2021-08-24 19:16:17 +02:00
parent b89dd7f0e3
commit 5f7de20cde
4 changed files with 9 additions and 7 deletions

View File

@@ -132,7 +132,7 @@ GetModelFromName(const char *name)
}
uint32 hashKey = CKeyGen::GetUppercaseKey(name);
for (i = 0; i < MODELINFOSIZE; i++) {
for (i = 0; i < CModelInfo::GetNumModelInfos(); i++) {
mi = CModelInfo::GetModelInfo(i);
if (mi && mi->GetRwObject()
&& RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&