[Scummvm-cvs-logs] scummvm master -> 310fe0a546ea85e2ca3275bca7ffcd5d22120a70

bluegr md5 at scummvm.org
Sun Sep 25 21:30:11 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
310fe0a546 AGI: Fix compilation


Commit: 310fe0a546ea85e2ca3275bca7ffcd5d22120a70
    https://github.com/scummvm/scummvm/commit/310fe0a546ea85e2ca3275bca7ffcd5d22120a70
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-09-25T12:23:22-07:00

Commit Message:
AGI: Fix compilation

Changed paths:
    engines/agi/saveload.cpp



diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index f919a9a..48d238a 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -59,7 +59,7 @@ int AgiEngine::saveGame(Common::String fileName, Common::String description) {
 	Common::OutSaveFile *out;
 	int result = errOK;
 
-	debugC(3, kDebugLevelMain | kDebugLevelSavegame, "AgiEngine::saveGame(%s, %s)", fileName.c_str(), description);
+	debugC(3, kDebugLevelMain | kDebugLevelSavegame, "AgiEngine::saveGame(%s, %s)", fileName.c_str(), description.c_str());
 	if (!(out = _saveFileMan->openForSaving(fileName))) {
 		warning("Can't create file '%s', game not saved", fileName.c_str());
 		return errBadFileOpen;
@@ -242,7 +242,7 @@ int AgiEngine::saveGame(Common::String fileName, Common::String description) {
 		warning("Can't write file '%s'. (Disk full?)", fileName.c_str());
 		result = errIOError;
 	} else
-		debugC(1, kDebugLevelMain | kDebugLevelSavegame, "Saved game %s in file %s", description, fileName.c_str());
+		debugC(1, kDebugLevelMain | kDebugLevelSavegame, "Saved game %s in file %s", description.c_str(), fileName.c_str());
 
 	delete out;
 	debugC(3, kDebugLevelMain | kDebugLevelSavegame, "Closed %s", fileName.c_str());






More information about the Scummvm-git-logs mailing list