Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Riotbot attack: Check if wielded weapon is null before using (#59298)
* Riotbot attack: Check if wielded weapon is null before using The game would occasionally crash when in presence of a riotbot. Running a debug build of the game relvealed the cause - mattack::riotbot would use get_wielded_item()->typeId() without checking if it was actually getting an item. The function will now check the returned item_location like other code using get_wielded_item() does. References #58666 * Add parentheses to the logical expression
- Loading branch information