diff options
author | D G Turner | 2018-08-09 23:06:07 +0100 |
---|---|---|
committer | D G Turner | 2018-08-09 23:06:07 +0100 |
commit | 971530787215ac2f9a36232005288dd8b2898412 (patch) | |
tree | 07f9288fca72b221737d4dbbb8efc75e4e9921c2 | |
parent | 85ebfd835dd8cedf007b8010e6d356df897b5ca8 (diff) | |
download | scummvm-rg350-971530787215ac2f9a36232005288dd8b2898412.tar.gz scummvm-rg350-971530787215ac2f9a36232005288dd8b2898412.tar.bz2 scummvm-rg350-971530787215ac2f9a36232005288dd8b2898412.zip |
STARTREK: Fix Various Compiler Warnings.
-rw-r--r-- | engines/startrek/saveload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/startrek/saveload.cpp b/engines/startrek/saveload.cpp index d7c11b7957..52bb7cbb47 100644 --- a/engines/startrek/saveload.cpp +++ b/engines/startrek/saveload.cpp @@ -131,7 +131,7 @@ bool StarTrekEngine::loadGame(int slot) { if (meta.version > CURRENT_SAVEGAME_VERSION) { delete in; - error("Savegame version (%d) is newer than current version (%d). A newer version of ScummVM is needed", meta.version, CURRENT_SAVEGAME_VERSION); + error("Savegame version (%u) is newer than current version (%u). A newer version of ScummVM is needed", meta.version, CURRENT_SAVEGAME_VERSION); } if (!saveOrLoadGameData(in, nullptr, &meta)) { @@ -328,7 +328,7 @@ bool StarTrekEngine::saveOrLoadGameData(Common::SeekableReadStream *in, Common:: // The action queue if (ser.isLoading()) { _actionQueue = Common::Queue<Action>(); - int16 n; + int16 n = 0; ser.syncAsSint16LE(n); for (int i = 0; i < n; i++) { Action a; |