diff options
| author | Yanis002 <35189056+Yanis002@users.noreply.github.com> | 2025-02-08 23:07:14 +0100 |
|---|---|---|
| committer | Yanis002 <35189056+Yanis002@users.noreply.github.com> | 2025-02-08 23:07:14 +0100 |
| commit | 222f3f7daaa5787ff967a1db78876cdfc3f8aa10 (patch) | |
| tree | fd8cace59c534146e7637780b8542e807618cee3 /src/Main/System | |
| parent | 25fef6bba19b0c3b016dc09c3aa9490d6ee2cddd (diff) | |
match OverlayManager::LoadIfNotLoaded (thanks to Maide)
Diffstat (limited to 'src/Main/System')
| -rw-r--r-- | src/Main/System/OverlayManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main/System/OverlayManager.cpp b/src/Main/System/OverlayManager.cpp index 8ba3f925..8fff1fc6 100644 --- a/src/Main/System/OverlayManager.cpp +++ b/src/Main/System/OverlayManager.cpp @@ -36,9 +36,10 @@ THUMB void OverlayManager::Load(OverlayIndex index, OverlayId id) { this->mLoadedOverlays[index] = id; } -// non-matching (regalloc) THUMB void OverlayManager::LoadIfNotLoaded(OverlayIndex index, OverlayId id) { - if (this->mLoadedOverlays[index] != id) { + OverlayId loadedId = this->mLoadedOverlays[index]; + + if (loadedId != id) { this->Unload(index); this->Load(index, id); } |
