Codechange: Pass ScriptInstance by reference.

This commit is contained in:
Peter Nelson
2025-03-24 10:24:39 +00:00
committed by Peter Nelson
parent 13fcc0900e
commit 72ca962b84
14 changed files with 67 additions and 67 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ protected:
class ActiveInstance {
friend class ScriptObject;
public:
ActiveInstance(ScriptInstance *instance);
ActiveInstance(ScriptInstance &instance);
~ActiveInstance();
private:
ScriptInstance *last_active; ///< The active instance before we go instantiated.
@@ -117,7 +117,7 @@ public:
* Get the currently active instance.
* @return The instance.
*/
static class ScriptInstance *GetActiveInstance();
static class ScriptInstance &GetActiveInstance();
/**
* Get a reference of the randomizer that brings this script random values.