- added version checks for function calls and virtual overrides.

- restricted the UI functions in inventory.
This commit is contained in:
Christoph Oelckers 2017-03-05 21:44:10 +01:00
commit 2b5fea4ea8
5 changed files with 53 additions and 15 deletions

View file

@ -804,7 +804,7 @@ FFunctionBuildList FunctionBuildList;
VMFunction *FFunctionBuildList::AddFunction(PNamespace *gnspc, const VersionInfo &ver, PFunction *functype, FxExpression *code, const FString &name, bool fromdecorate, int stateindex, int statecount, int lumpnum)
{
auto func = code->GetDirectFunction();
auto func = code->GetDirectFunction(ver);
if (func != nullptr)
{
delete code;