summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/control/Script.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 59054be3..b6844b6c 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -414,6 +414,14 @@ class CRunningScript
public:
void SetIP(uint32 ip) { m_nIp = ip; }
CRunningScript* GetNext() const { return next; }
+ void BuildFromSaved(const CRunningScript& pSaved)
+ {
+ CRunningScript* n = next;
+ CRunningScript* p = prev;
+ *this = pSaved;
+ next = n;
+ prev = p;
+ }
void UpdateTimers(float timeStep) {
m_anLocalVariables[NUM_LOCAL_VARS] += timeStep;
m_anLocalVariables[NUM_LOCAL_VARS + 1] += timeStep;