Skip to content

Commit

Permalink
- fixed: ScriptUtil.PlayerAmmo must be declared static.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 20, 2019
1 parent 0591e9f commit caf326a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/scriptutil/scriptutil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
let ammotype = (class<Ammo>)(type);
Expand Down

0 comments on commit caf326a

Please sign in to comment.