Core/Vmaps: Fix loading vmaps

This commit is contained in:
hondacrx
2018-05-04 11:05:32 -04:00
parent 1a7f31d4f2
commit 91ab38cc13
2 changed files with 19 additions and 14 deletions
@@ -247,9 +247,10 @@ namespace Game.Collision
return null;
}
Log.outDebug(LogFilter.Maps, "VMapManager: loading file '{0}'", filename);
iLoadedModelFiles.Add(filename, new ManagedModel());
model = iLoadedModelFiles.LookupByKey(filename);
model = new ManagedModel();
model.setModel(worldmodel);
iLoadedModelFiles.Add(filename, model);
}
model.incRefCount();
return model.getModel();