mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed compilation error on some compilers
This commit is contained in:
parent
0ee1307e75
commit
75f8f86f86
3 changed files with 88 additions and 83 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue