Skip to content

Commit

Permalink
Merge pull request #4830 from myk002/myk_vtable_null
Browse files Browse the repository at this point in the history
[VTableInterpose] fix crash when reloading savegames with add-spatter enabled
  • Loading branch information
myk002 authored Aug 2, 2024
2 parents 368e37a + 6f8a689 commit c3d36b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Template for new versions:
- ``Units::isHidingCurse``: don't check ``hunt_target``, which is obsolete
- ``Units::getReadableName``: correct display of ghost+curse names w/r/t each other and unit prof, use ``curse.name`` instead of iterating syndrome name effects
- `autodump`: cancel active job on dumped items
- `add-spatter`: fix a crash related to unloading a savegame with add-spatter reactions, then loading a second savegame with add-spatter reactions

## Misc Improvements
- `tweak`: improve performance of ``adamantine-cloth-wear`` tweak
Expand Down
2 changes: 2 additions & 0 deletions library/VTableInterpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ VMethodInterposeLinkBase *VMethodInterposeLinkBase::get_first_interpose(const vi
return NULL;

auto item = pitem->second;
if (!item)
return NULL;

if (item->host != id)
return NULL;
Expand Down

0 comments on commit c3d36b6

Please sign in to comment.