Delete copy operations for GameScriptAIObject, GameScriptCameraInfo, GameScriptSinkInfo and GameScriptSoundSourceInfo - this can be changed later, but for now is a safety measure since we hold a reference, which means copying these would take some extra thought.

This commit is contained in:
hispidence 2021-07-26 18:25:50 +01:00
parent b94cc960a2
commit 08a5df8ab4
4 changed files with 14 additions and 0 deletions

View file

@ -14,6 +14,9 @@ public:
GameScriptAIObject(AI_OBJECT& ref, bool temp);
~GameScriptAIObject();
GameScriptAIObject& operator=(GameScriptAIObject const& other) = delete;
GameScriptAIObject(GameScriptAIObject const& other) = delete;
static void Register(sol::state *);
GameScriptPosition GetPos() const;