aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner
diff options
context:
space:
mode:
authorThanasis Antoniou2019-05-04 10:08:39 +0300
committerThanasis Antoniou2019-05-04 17:25:34 +0300
commit7d2777e1d7f1abef54272ffb4287e26738a8a554 (patch)
tree1cd002ac76913592b438d61a6a5aa634892a079c /engines/bladerunner
parenta281d68d7b6796583d0b3ce7fce1746c3c2321a3 (diff)
downloadscummvm-rg350-7d2777e1d7f1abef54272ffb4287e26738a8a554.tar.gz
scummvm-rg350-7d2777e1d7f1abef54272ffb4287e26738a8a554.tar.bz2
scummvm-rg350-7d2777e1d7f1abef54272ffb4287e26738a8a554.zip
BLADERUNNER: Debugger add box fix
Diffstat (limited to 'engines/bladerunner')
-rw-r--r--engines/bladerunner/debugger.cpp2
-rw-r--r--engines/bladerunner/set_effects.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp
index 5dde9d44f1..153d8fa306 100644
--- a/engines/bladerunner/debugger.cpp
+++ b/engines/bladerunner/debugger.cpp
@@ -1155,8 +1155,8 @@ bool Debugger::cmdObject(int argc, const char **argv) {
if (_vm->_scene->_set->_objectCount > 85) { //85 is the size of the _objects array in set.cpp
debugPrintf("Unable to add more objects in the set\n");
} else {
- _vm->_scene->_set->_objectCount++;
int objectId = _vm->_scene->_set->_objectCount;
+ _vm->_scene->_set->_objectCount++;
_vm->_scene->_set->_objects[objectId].name = custObjName.c_str();
float x0, y0, z0, x1, y1, z1;
diff --git a/engines/bladerunner/set_effects.cpp b/engines/bladerunner/set_effects.cpp
index d54fd2b3dd..72809f94c1 100644
--- a/engines/bladerunner/set_effects.cpp
+++ b/engines/bladerunner/set_effects.cpp
@@ -67,7 +67,7 @@ void SetEffects::read(Common::ReadStream *stream, int frameCount) {
fog = new FogBox();
break;
default:
- error("Uknown fog type %d", type);
+ error("Unknown fog type %d", type);
}
if (fog != nullptr) {
fog->read(stream, frameCount);