aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BScriptable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base/BScriptable.cpp')
-rw-r--r--engines/wintermute/Base/BScriptable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BScriptable.cpp b/engines/wintermute/Base/BScriptable.cpp
index b61398c9b2..e9416cfaf3 100644
--- a/engines/wintermute/Base/BScriptable.cpp
+++ b/engines/wintermute/Base/BScriptable.cpp
@@ -61,7 +61,7 @@ CBScriptable::~CBScriptable() {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-ERRORCODE CBScriptable::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name) {
+bool CBScriptable::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name) {
/*
stack->correctParams(0);
stack->pushNULL();
@@ -82,7 +82,7 @@ CScValue *CBScriptable::scGetProperty(const char *name) {
//////////////////////////////////////////////////////////////////////////
-ERRORCODE CBScriptable::scSetProperty(const char *name, CScValue *value) {
+bool CBScriptable::scSetProperty(const char *name, CScValue *value) {
if (!_scProp) _scProp = new CScValue(_gameRef);
if (_scProp) return _scProp->setProp(name, value);
else return STATUS_FAILED;
@@ -139,7 +139,7 @@ void CBScriptable::scSetBool(bool val) {
//////////////////////////////////////////////////////////////////////////
-ERRORCODE CBScriptable::persist(CBPersistMgr *persistMgr) {
+bool CBScriptable::persist(CBPersistMgr *persistMgr) {
persistMgr->transfer(TMEMBER(_gameRef));
persistMgr->transfer(TMEMBER(_refCount));
persistMgr->transfer(TMEMBER(_scProp));