Fix a potential crash when selling weapons.
This commit is contained in:
parent
62c9427c2d
commit
02373b99f0
2 changed files with 3 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r296 \cu(Thu 11 Aug 10:52:54 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r296 \cu(2022-08-11 10:52:54)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r297 \cu(Thu 11 Aug 16:24:23 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r297 \cu(2022-08-11 16:24:23)\c-";
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@ extend Class SWWMHandler
|
|||
if ( item is 'SWWMWeapon' )
|
||||
{
|
||||
let c = Weapon(players[e.Args[0]].mo.FindInventory(item));
|
||||
if ( c.SisterWeapon && (players[e.Args[0]].ReadyWeapon == c.SisterWeapon) )
|
||||
if ( c && c.SisterWeapon && (players[e.Args[0]].ReadyWeapon == c.SisterWeapon) )
|
||||
{
|
||||
players[e.Args[0]].ReadyWeapon = c;
|
||||
players[e.Args[0]].SetPSprite(PSP_WEAPON,c.FindState("Ready"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue