From 5c8ae7245373d9bcc20b0e797ca57cc7ce14b9bb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 20 Jan 2019 18:58:02 +0100 Subject: [PATCH] - fixed: ScriptUtil.PlayerAmmo must be declared static. --- wadsrc/static/zscript/scriptutil/scriptutil.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/scriptutil/scriptutil.txt b/wadsrc/static/zscript/scriptutil/scriptutil.txt index 81bcb0330..b7fae4352 100644 --- a/wadsrc/static/zscript/scriptutil/scriptutil.txt +++ b/wadsrc/static/zscript/scriptutil/scriptutil.txt @@ -259,7 +259,7 @@ class ScriptUtil play // //========================================================================== - int PlayerAmmo(Actor activator, class type, int newamount = int.min) + static int PlayerAmmo(Actor activator, class type, int newamount = int.min) { if (activator == null) return 0; let ammotype = (class)(type);