Skip to content

Commit

Permalink
Merge pull request #17 from Deamon87/development
Browse files Browse the repository at this point in the history
Fix Split Group loading
  • Loading branch information
Deamon87 authored Oct 8, 2022
2 parents b667db7 + 0878312 commit 81b9bf7
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 510 deletions.
4 changes: 3 additions & 1 deletion wowViewerLib/src/engine/objects/wmo/wmoObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,10 @@ void WmoObject::addSplitChildWMOsToView(InteriorView &interiorView, int groupId)
int nextChildGroupIndex = parentMogp->parentSplitOrFirstChildGroupIndex;
while (nextChildGroupIndex != -1) {
auto &groupWmo = groupObjects[nextChildGroupIndex];
if (!groupWmo->getIsLoaded())
if (!groupWmo->getIsLoaded()) {
interiorView.wmoGroupArray.addToLoad(groupWmo);
return;
}

auto &mogp = groupWmo->getWmoGroupGeom()->mogp;
if (!mogp->flags2.isSplitGroupChild)
Expand Down
Loading

0 comments on commit 81b9bf7

Please sign in to comment.