diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 79b48953a4..8576bcae18 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -48,8 +48,6 @@ #include "w_wad.h" #include "doomstat.h" -inline PClass *PObjectPointer::PointedClass() const { return static_cast(PointedType)->Descriptor; } - extern FRandom pr_exrandom; FMemArena FxAlloc(65536); int utf8_decode(const char *src, int *size); diff --git a/src/scripting/types.h b/src/scripting/types.h index 52f1fc464b..7d2f2341cc 100644 --- a/src/scripting/types.h +++ b/src/scripting/types.h @@ -575,6 +575,10 @@ public: }; +inline PClass *PObjectPointer::PointedClass() const +{ + return static_cast(PointedType)->Descriptor; +} // Returns a type from the TypeTable. Will create one if it isn't present. PMap *NewMap(PType *keytype, PType *valuetype);