From 886df37d1aca8c670d82fb0548f8ecc3bf297327 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 29 Nov 2018 19:00:25 +0100 Subject: [PATCH] ChangeStatNum must not be virtual Overriding this would make the engine vulnerable to badly behaving mods. Intercepting this and altering the behavior can render the entire game inoperable, especially if more internal code gets scriptified later. So even at the risk of breaking some carelsss mods this must be blocked. --- wadsrc/static/zscript/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 56682b1d4..d74bc73d6 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -449,7 +449,7 @@ class Thinker : Object native play virtual native void Tick(); virtual native void PostBeginPlay(); - virtual native void ChangeStatNum(int stat); + virtual void ChangeStatNum(int stat); static clearscope int Tics2Seconds(int tics) {