mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-21 09:01:37 +00:00
- workaround code generation issue in PlayerPawn.FindMostRecentWeapon()
Multiple values in returned from a subfunction cannot be used directly as a function result https://forum.zdoom.org/viewtopic.php?t=63284
This commit is contained in:
parent
c83b2b766d
commit
fc249706bc
1 changed files with 2 additions and 1 deletions
|
@ -1943,7 +1943,8 @@ class PlayerPawn : Actor native
|
|||
// look for its non-powered up version.
|
||||
if (ReadyWeapon.bPOWERED_UP && ReadyWeapon.SisterWeaponType != null)
|
||||
{
|
||||
return player.weapons.LocateWeapon(ReadyWeapon.SisterWeaponType);
|
||||
[found, slot, index] = player.weapons.LocateWeapon(ReadyWeapon.SisterWeaponType);
|
||||
return found, slot, index;
|
||||
}
|
||||
return false, 0, 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue