aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge2/sound.cpp')
-rw-r--r--engines/cge2/sound.cpp6
1 files changed, 3 insertions, 3 deletions
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);