Fixed compilation error on some compilers

This commit is contained in:
smallmodel 2023-11-29 00:08:35 +01:00
parent 0ee1307e75
commit 75f8f86f86
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
3 changed files with 88 additions and 83 deletions

View file

@ -285,6 +285,29 @@ public:
#ifdef WITH_SCRIPT_ENGINE
template<>
class con_set_Entry<short3, ScriptVariable>
{
friend con_set<short3, ScriptVariable>;
friend con_set_enum<short3, ScriptVariable>;
private:
con_set_Entry *next;
ScriptVariable value;
public:
void *operator new(size_t size) { return con_set<short3, ScriptVariable>::NewEntry(size); }
void operator delete(void *ptr) { con_set<short3, ScriptVariable>::DeleteEntry(ptr); }
# ifdef ARCHIVE_SUPPORTED
void Archive(Archiver& arc) { value.Archive(arc); }
# endif
short3& GetKey() { return value.GetKey(); }
void SetKey(const short3& newKey) { value.SetKey(newKey); }
};
class ScriptVariableList : public Class
{
private: