- fixed: ScriptUtil.PlayerAmmo must be declared static.

This commit is contained in:
Christoph Oelckers 2019-01-20 18:58:02 +01:00
parent 3f835cd124
commit 5c8ae72453

View file

@ -259,7 +259,7 @@ class ScriptUtil play
// //
//========================================================================== //==========================================================================
int PlayerAmmo(Actor activator, class<Inventory> type, int newamount = int.min) static int PlayerAmmo(Actor activator, class<Inventory> type, int newamount = int.min)
{ {
if (activator == null) return 0; if (activator == null) return 0;
let ammotype = (class<Ammo>)(type); let ammotype = (class<Ammo>)(type);