aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/init.cpp')
-rw-r--r--engines/gob/init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp
index 1f1942e00c..be14b71661 100644
--- a/engines/gob/init.cpp
+++ b/engines/gob/init.cpp
@@ -91,10 +91,10 @@ void Init::initGame() {
initVideo();
if (!_vm->isDemo()) {
- handle2 = _vm->_dataIO->openData(_vm->_startStk);
+ handle2 = _vm->_dataIO->openData(_vm->_startStk.c_str());
if (handle2 >= 0) {
_vm->_dataIO->closeData(handle2);
- _vm->_dataIO->openDataFile(_vm->_startStk);
+ _vm->_dataIO->openDataFile(_vm->_startStk.c_str());
}
}
@@ -167,7 +167,7 @@ void Init::initGame() {
delete[] infBuf;
}
- strcpy(buffer, _vm->_startTot);
+ strcpy(buffer, _vm->_startTot.c_str());
handle = _vm->_dataIO->openData(buffer);
if (handle >= 0) {