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.
This commit is contained in:
Christoph Oelckers 2018-11-29 19:00:25 +01:00 committed by drfrag
parent 09f4c7e4a9
commit 886df37d1a

View file

@ -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)
{