Fixed: retrieving a weapon's preferred skin in ACS would crash the game if the player had no weapon selected.
If all of a player's weapons are removed (e.g. typing take weapons
in the console, or ClearInventory
in an ACS script), then if an ACS script calls GetPlayerSkin
with PLAYERSKIN_WEAPON
to retrieve that player's preferred weapon skin, it will crash.
The crash happened as a result of this commit: 81dfa87ddaaf