fix crash when mod-transmog is used alongside playerbot and junk-to-gold #214
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm running the worldserver with mod-playerbots and mod-junk-to-gold activated.
After I installed mod-transmog, my world server kept crashing right after launch and after the first playerbots started logging in. Investigation went as follows:
First crash, before removing typeid() check
I removed that check.
Second crash, after removing typeid() check
I ended up removing the whole body of
OnPlayerLootItemas it seems other hooks are handling all needed cases, but I don't have much knowledge on the codebase so I could be wrong. That said I played with 500 bots, looted many mobs and witnessed bots loot too, no more crash.I'll do some more tests but opening the PR now in case you have early feedback
Thanks