You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
l29ah
changed the title
Swapping positions with a friendly NPC in a vehicle result in error in map::board_vehicle
Swapping positions with a friendly monster in a vehicle result in error in map::board_vehicle
Jun 16, 2019
FixesCleverRaven#31538
the swap option in the pet menu wasn't unboarding the player
correctly because it was rolling its own logic for swapping position.
Use swap_critters() instead.
…5556)
* game: don't dereference null pointers in swap_critters()
swap_critters() dynamically casts the second creature to player * as
other_npc and then checks if other_npc is in a vehicle. This will
cause a crash if the second creature isn't a subclass of player,
such as when the creature is a monster.
Check for the validity of other_npc before derefencing it.
* monster: use swap_critters() to swap a pet position in the pet menu
Fixes#31538
the swap option in the pet menu wasn't unboarding the player
correctly because it was rolling its own logic for swapping position.
Use swap_critters() instead.
Steps To Reproduce
Steps to reproduce the behavior:
e
xamine its Swap positions
untilYou swap positions with your Labrador mutt.
Versions and configuration
Still doesn't work.
Additional context
2019.06.14-4.zip
The text was updated successfully, but these errors were encountered: