diff options
author | Torbjörn Andersson | 2004-10-10 12:26:49 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-10-10 12:26:49 +0000 |
commit | 353741ebee1b763a1672a2aec61f9d5ca68111c6 (patch) | |
tree | 755c24251eec70e4699ccee9781d370cdffc5541 /saga | |
parent | e5b97ee63b20aebf5a44098e6d377042c7ac8569 (diff) | |
download | scummvm-rg350-353741ebee1b763a1672a2aec61f9d5ca68111c6.tar.gz scummvm-rg350-353741ebee1b763a1672a2aec61f9d5ca68111c6.tar.bz2 scummvm-rg350-353741ebee1b763a1672a2aec61f9d5ca68111c6.zip |
The thread variables I added yesterdays will be accessed by scripts, so
byte order will matter.
svn-id: r15507
Diffstat (limited to 'saga')
-rw-r--r-- | saga/scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index f2eadaea0b..db23de06b7 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -991,7 +991,7 @@ int Scene::defaultScene(int param, R_SCENE_INFO *scene_info) { } _startScriptThread->threadVars[kVarAction] = 0; - _startScriptThread->threadVars[kVarObject] = _sceneNumber; + _startScriptThread->threadVars[kVarObject] = TO_LE_16(_sceneNumber); _startScriptThread->threadVars[kVarWithObject] = 0; // TOTO: entrance _startScriptThread->threadVars[kVarActor] = 0; @@ -1022,7 +1022,7 @@ int Scene::defaultScene(int param, R_SCENE_INFO *scene_info) { } _sceneScriptThread->threadVars[kVarAction] = 0; - _sceneScriptThread->threadVars[kVarObject] = _sceneNumber; + _sceneScriptThread->threadVars[kVarObject] = TO_LE_16(_sceneNumber); _sceneScriptThread->threadVars[kVarWithObject] = 0; // TODO: entrance _sceneScriptThread->threadVars[kVarActor] = 0; // TODO: VERB_ENTER |