aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/script.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-09-25 17:33:00 +0000
committerRobert Špalek2009-09-25 17:33:00 +0000
commit431780297e6db1f97733689a6c1485a624a61dc9 (patch)
treea391a26a5b0e466bb8f49a7285b4ff8ea521c216 /engines/draci/script.cpp
parent180b3f1247e44c7167ca9578261b570357c11b7a (diff)
downloadscummvm-rg350-431780297e6db1f97733689a6c1485a624a61dc9.tar.gz
scummvm-rg350-431780297e6db1f97733689a6c1485a624a61dc9.tar.bz2
scummvm-rg350-431780297e6db1f97733689a6c1485a624a61dc9.zip
Added some more const's to the interface of Dragon History
svn-id: r44362
Diffstat (limited to 'engines/draci/script.cpp')
-rw-r--r--engines/draci/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index 645bd136b6..7cac75b757 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -907,7 +907,7 @@ int Script::handleMathExpression(Common::MemoryReadStream &reader) const {
*
* Reference: the function equivalent to this one is called "Can()" in the original engine.
*/
-bool Script::testExpression(GPL2Program program, uint16 offset) const {
+bool Script::testExpression(const GPL2Program &program, uint16 offset) const {
// Initialize program reader
Common::MemoryReadStream reader(program._bytecode, program._length);
@@ -987,7 +987,7 @@ const GPL2Command *Script::findCommand(byte num, byte subnum) const {
* value comes from.
*/
-int Script::run(GPL2Program program, uint16 offset) {
+int Script::run(const GPL2Program &program, uint16 offset) {
int oldJump = _jump;