diff options
author | Robert Špalek | 2009-09-25 17:33:00 +0000 |
---|---|---|
committer | Robert Špalek | 2009-09-25 17:33:00 +0000 |
commit | 431780297e6db1f97733689a6c1485a624a61dc9 (patch) | |
tree | a391a26a5b0e466bb8f49a7285b4ff8ea521c216 /engines/draci/script.cpp | |
parent | 180b3f1247e44c7167ca9578261b570357c11b7a (diff) | |
download | scummvm-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.cpp | 4 |
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; |