aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-15 11:44:55 +0000
committerFilippos Karapetis2010-06-15 11:44:55 +0000
commit5b484b5be7a9b9abbaf6b686e59b2ee9f88acb2d (patch)
tree32da089166777431f4f9fadbd236cd0ce2bbe031
parent103cb1b3baffbb1a480e5e1dccd6f98aaa97f591 (diff)
downloadscummvm-rg350-5b484b5be7a9b9abbaf6b686e59b2ee9f88acb2d.tar.gz
scummvm-rg350-5b484b5be7a9b9abbaf6b686e59b2ee9f88acb2d.tar.bz2
scummvm-rg350-5b484b5be7a9b9abbaf6b686e59b2ee9f88acb2d.zip
Fixed compilation when SCI32 code is not enabled
svn-id: r49805
-rw-r--r--engines/sci/console.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 0c017af281..1c6f4461a8 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -2191,6 +2191,7 @@ bool Console::cmdViewReference(int argc, const char **argv) {
break;
case KSIG_REF: {
switch (_engine->_gamestate->_segMan->getSegmentType(reg.segment)) {
+#ifdef ENABLE_SCI32
case SEG_TYPE_STRING: {
const SciString *str = _engine->_gamestate->_segMan->lookupString(reg);
Common::hexdump((const byte *) str->getRawData(), str->getSize(), 16, 0);
@@ -2201,6 +2202,7 @@ bool Console::cmdViewReference(int argc, const char **argv) {
Common::hexdump((const byte *) array->getRawData(), array->getSize(), 16, 0);
break;
}
+#endif
default: {
int size;
const SegmentRef block = _engine->_gamestate->_segMan->dereference(reg);