diff options
author | Strangerke | 2016-08-21 14:25:06 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 53121afb092587f87faf0281b08e96ff1c59e44e (patch) | |
tree | b704a953969c3dc3e2e7bb4d0f3f3b2bc1ff2b3c /engines/dm/dm.cpp | |
parent | 20165b18656ee6ddb2586983735fa280abfefc54 (diff) | |
download | scummvm-rg350-53121afb092587f87faf0281b08e96ff1c59e44e.tar.gz scummvm-rg350-53121afb092587f87faf0281b08e96ff1c59e44e.tar.bz2 scummvm-rg350-53121afb092587f87faf0281b08e96ff1c59e44e.zip |
DM: Fix some GCC warnings
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r-- | engines/dm/dm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 9f84269b20..ac85b9d0c4 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -72,13 +72,13 @@ void warning(bool repeat, const char* s, ...) { va_end(va); if (repeat) { - ::warning(output.c_str()); + ::warning("%s", output.c_str()); } else { static Common::Array<Common::String> stringsPrinted; if (Common::find(stringsPrinted.begin(), stringsPrinted.end(), s) == stringsPrinted.end()) { stringsPrinted.push_back(output); - ::warning(output.c_str()); + ::warning("%s", output.c_str()); } } } @@ -683,7 +683,7 @@ void DMEngine::f444_endGame(bool doNotDrawCreditsOnly) { char displStr[20]; strcpy(displStr, G0428_apc_SkillLevelNames[skillLevel - 2]); strcat(displStr, " "); - strcat(displStr, g417_baseSkillName[idx]); + strcat(displStr, _championMan->_baseSkillName[idx]); _textMan->f443_endgamePrintString(105, textPosY = textPosY + 8, k13_ColorLightestGray, displStr); } championMirrorBox._y1 += 48; |