aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sfuncs_ihnm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/sfuncs_ihnm.cpp')
-rw-r--r--engines/saga/sfuncs_ihnm.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/saga/sfuncs_ihnm.cpp b/engines/saga/sfuncs_ihnm.cpp
index 1a73677846..3fbf3b6e67 100644
--- a/engines/saga/sfuncs_ihnm.cpp
+++ b/engines/saga/sfuncs_ihnm.cpp
@@ -389,11 +389,10 @@ void Script::sfSetSpeechBox(SCRIPTFUNC_PARAMS) {
void Script::sfDebugShowData(SCRIPTFUNC_PARAMS) {
int16 param = thread->pop();
- char buf[50];
- snprintf(buf, 50, "Reached breakpoint %d", param);
+ Common::String buf = Common::String::format("Reached breakpoint %d", param);
- _vm->_interface->setStatusText(buf);
+ _vm->_interface->setStatusText(buf.c_str());
}
void Script::sfWaitFramesEsc(SCRIPTFUNC_PARAMS) {