aboutsummaryrefslogtreecommitdiff
path: root/engines/savestate.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/savestate.h')
-rw-r--r--engines/savestate.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/savestate.h b/engines/savestate.h
index ce78bc4ba3..df01732058 100644
--- a/engines/savestate.h
+++ b/engines/savestate.h
@@ -49,9 +49,7 @@ public:
}
SaveStateDescriptor(int s, const Common::String &d) : _thumbnail() {
- char buf[16];
- sprintf(buf, "%d", s);
- setVal("save_slot", buf);
+ setVal("save_slot", Common::String::format("%d", s));
setVal("description", d);
}