summaryrefslogtreecommitdiff
path: root/src/cat/TPTScriptInterface.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-01 17:13:13 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-01 17:13:13 (GMT)
commitba55da77a9dd2ed4fd7ce87adb2fc6622d130238 (patch)
tree47df5e24377886ad55095694fa39d01529db7fe4 /src/cat/TPTScriptInterface.cpp
parent618e29d5d487a2215628b5cf70ccc72462878201 (diff)
downloadpowder-ba55da77a9dd2ed4fd7ce87adb2fc6622d130238.zip
powder-ba55da77a9dd2ed4fd7ce87adb2fc6622d130238.tar.gz
!load command for old console
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
-rw-r--r--src/cat/TPTScriptInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp
index dc466db..ce7128f 100644
--- a/src/cat/TPTScriptInterface.cpp
+++ b/src/cat/TPTScriptInterface.cpp
@@ -15,7 +15,7 @@
#include "game/GameModel.h"
#include "simulation/Air.h"
-TPTScriptInterface::TPTScriptInterface(GameModel * m): CommandInterface(m)
+TPTScriptInterface::TPTScriptInterface(GameController * c, GameModel * m): CommandInterface(c, m)
{
}
@@ -365,7 +365,7 @@ AnyType TPTScriptInterface::tptS_load(std::deque<std::string> * words)
//Arguments from stack
NumberType saveID = eval(words);
- throw GeneralException("Function not implemented");
+ c->OpenSavePreview(saveID.Value(), 0);
return NumberType(0);
}