From 6cc469dc5c1021764f0cf4a4e0a46e83f760ae5f Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 7 Jun 2015 17:19:05 +0200 Subject: SHERLOCK: Fix GCC compilation --- engines/sherlock/animation.cpp | 2 +- engines/sherlock/resources.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sherlock/animation.cpp b/engines/sherlock/animation.cpp index bc0e337039..a069abef6f 100644 --- a/engines/sherlock/animation.cpp +++ b/engines/sherlock/animation.cpp @@ -150,7 +150,7 @@ bool Animation::play3DO(const Common::String &filename, int minDelay, int fade, Common::File *indexStream = new Common::File(); if (!indexStream->open(indexName)) { - warning("unable to open %s\n", indexName); + warning("unable to open %s\n", indexName.c_str()); return false; } diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp index d98d3d8ea5..a5f7ba469c 100644 --- a/engines/sherlock/resources.cpp +++ b/engines/sherlock/resources.cpp @@ -580,7 +580,7 @@ ImageFile3DO::ImageFile3DO(const Common::String &name, bool animImages) { Common::File *dataStream = new Common::File(); if (!dataStream->open(name)) { - error("unable to open %s\n", name); + error("unable to open %s\n", name.c_str()); } load(*dataStream, animImages); -- cgit v1.2.3