aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-28 16:02:08 +0000
committerEugene Sandulenko2010-10-12 23:18:58 +0000
commitdeb7dcc8bb26483ea1f0271e04de441a586dd144 (patch)
treea8d7e70930573833c9ca120e9f28a3ca5c513cd3
parent4024caf76839a21413317fbb39510a616b958fa5 (diff)
downloadscummvm-rg350-deb7dcc8bb26483ea1f0271e04de441a586dd144.tar.gz
scummvm-rg350-deb7dcc8bb26483ea1f0271e04de441a586dd144.tar.bz2
scummvm-rg350-deb7dcc8bb26483ea1f0271e04de441a586dd144.zip
SWORD25: Fix warnings
svn-id: r53292
-rw-r--r--engines/sword25/gfx/animationresource.cpp4
-rw-r--r--engines/sword25/sword25.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/gfx/animationresource.cpp b/engines/sword25/gfx/animationresource.cpp
index 3ab1991ca4..9f66469ebb 100644
--- a/engines/sword25/gfx/animationresource.cpp
+++ b/engines/sword25/gfx/animationresource.cpp
@@ -206,7 +206,7 @@ bool AnimationResource::parserCallback_frame(ParserNode *node) {
if (!flipVString.empty()) {
if (!parseBooleanKey(flipVString, frame.FlipV)) {
BS_LOG_WARNINGLN("Illegal flipv value (\"%s\") in <frame> tag in \"%s\". Assuming default (\"false\").",
- flipVString, GetFileName().c_str());
+ flipVString.c_str(), GetFileName().c_str());
frame.FlipV = false;
}
} else
@@ -216,7 +216,7 @@ bool AnimationResource::parserCallback_frame(ParserNode *node) {
if (!flipHString.empty()) {
if (!parseBooleanKey(flipVString, frame.FlipV)) {
BS_LOG_WARNINGLN("Illegal fliph value (\"%s\") in <frame> tag in \"%s\". Assuming default (\"false\").",
- flipHString, GetFileName().c_str());
+ flipHString.c_str(), GetFileName().c_str());
frame.FlipH = false;
}
} else
diff --git a/engines/sword25/sword25.cpp b/engines/sword25/sword25.cpp
index 946865cf10..f850bfb43b 100644
--- a/engines/sword25/sword25.cpp
+++ b/engines/sword25/sword25.cpp
@@ -50,7 +50,7 @@ const char *const PACKAGE_MANAGER = "archiveFS";
const char *const DEFAULT_SCRIPT_FILE = "/system/boot.lua";
void LogToStdout(const char *Message) {
- debugN(0, Message);
+ debugN(0, "%s", Message);
}
Sword25Engine::Sword25Engine(OSystem *syst, const ADGameDescription *gameDesc):