CCubeRenderer: Fix conditional in DrawAreaGeometry

This commit is contained in:
Luke Street 2022-07-01 00:20:43 -04:00
parent fc742782a8
commit ddf7a1b48d
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ void CCubeRenderer::DrawAreaGeometry(s32 areaIdx, s32 mask, s32 targetMask) {
constexpr CModelFlags flags{0, 0, 3, zeus::skWhite}; constexpr CModelFlags flags{0, 0, 3, zeus::skWhite};
for (CAreaListItem& item : x1c_areaListItems) { for (CAreaListItem& item : x1c_areaListItems) {
if (areaIdx != -1 || item.x18_areaIdx == areaIdx) { if (areaIdx == -1 || item.x18_areaIdx == areaIdx) {
CPVSVisSet* pvs = xc8_pvs ? &*xc8_pvs : nullptr; CPVSVisSet* pvs = xc8_pvs ? &*xc8_pvs : nullptr;
if (xe0_pvsAreaIdx != item.x18_areaIdx) { if (xe0_pvsAreaIdx != item.x18_areaIdx) {
pvs = nullptr; pvs = nullptr;