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
parent 3acd9c8116
commit ba2b9430f8

View file

@ -452,7 +452,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)
{