Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Item Handle when killing a Goblins/Skeletons after loading a savegame #321

Open
markusobi opened this issue Mar 14, 2018 · 0 comments

Comments

@markusobi
Copy link
Contributor

markusobi commented Mar 14, 2018

When killing a goblin/skeleton after loading a savegame the game tries to equip an invalid item.
The callstack looked like this:
PlayerController::AniEvent_SFX
PlayerController::die
PlayerController::interrupt
PlayerController::undrawWeapon
PlayerController::equipItem
DaedalusGameState::getItem

The handle PlayerController::m_EquipmentState.activeWeapon of the dying monster is not longer valid, because the internal handle's generation increased by 1.

Might be related to the special case for goblins/skeletons: AFAIK they are in FIST mode, but hold a weapon. It only happens when loading a savegame not - not in a new game!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant