aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge2')
-rw-r--r--engines/cge2/map.cpp2
-rw-r--r--engines/cge2/sound.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge2/map.cpp b/engines/cge2/map.cpp
index 1ed0ea7daf..8c1f00048f 100644
--- a/engines/cge2/map.cpp
+++ b/engines/cge2/map.cpp
@@ -42,7 +42,7 @@ void Map::clear() {
void Map::load(int scene) {
clear();
- char fname[] = "%.2d.MAP\0";
+ const char *fname = "%.2d.MAP";
Common::String fileName = Common::String::format(fname, scene);
if (!_vm->_resman->exist(fileName.c_str()))
return;
diff --git a/engines/cge2/sound.cpp b/engines/cge2/sound.cpp
index 32f94b17b9..57ec5983e8 100644
--- a/engines/cge2/sound.cpp
+++ b/engines/cge2/sound.cpp
@@ -143,9 +143,9 @@ void Fx::clear() {
}
Common::String Fx::name(int ref, int sub) {
- char fxname[] = "%.2dfx%.2d.WAV\0";
- char subName[] = "%.2dfx%.2d?.WAV\0";
- char *p = (sub) ? subName : fxname;
+ const char *fxname = "%.2dfx%.2d.WAV";
+ const char *subName = "%.2dfx%.2d?.WAV";
+ const char *p = (sub) ? subName : fxname;
Common::String filename = Common::String::format(p, ref >> 8, ref & 0xFF);
if (sub)
filename.setChar('@' + sub, 6);