diff options
author | Arnaud Boutonné | 2010-08-27 09:48:53 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-08-27 09:48:53 +0000 |
commit | ec9708694e886746af0d45d30bbf271c2061053f (patch) | |
tree | 1b75a7291c13bb389175ca08896f7959395d4064 /engines/hugo/engine.cpp | |
parent | fd574d5e24ce10cd10f75b73f6f98327f4ce79ce (diff) | |
download | scummvm-rg350-ec9708694e886746af0d45d30bbf271c2061053f.tar.gz scummvm-rg350-ec9708694e886746af0d45d30bbf271c2061053f.tar.bz2 scummvm-rg350-ec9708694e886746af0d45d30bbf271c2061053f.zip |
HUGO: Hopefully fix GCC_PRINTF issue in util
* Add a mask in each call of Warn(), Error() and Box() not using one
* cleanup: use the same wording for 'End of namespace Hugo' in all files
svn-id: r52406
Diffstat (limited to 'engines/hugo/engine.cpp')
-rw-r--r-- | engines/hugo/engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hugo/engine.cpp b/engines/hugo/engine.cpp index 8f8d5cfef2..082cbdd685 100644 --- a/engines/hugo/engine.cpp +++ b/engines/hugo/engine.cpp @@ -848,7 +848,7 @@ void HugoEngine::useObject(int16 objId) { // Deselect dragged icon if inventory not active if (_status.inventoryState != I_ACTIVE) _status.inventoryObjId = -1; - Utils::Box(BOX_ANY, _textData[use->dataIndex]); + Utils::Box(BOX_ANY, "%s", _textData[use->dataIndex]); return; } } @@ -988,9 +988,9 @@ void HugoEngine::endGame() { debugC(1, kDebugEngine, "endGame"); if (!_boot.registered) - Utils::Box(BOX_ANY, _textEngine[kEsAdvertise]); + Utils::Box(BOX_ANY, "%s", _textEngine[kEsAdvertise]); Utils::Box(BOX_ANY, "%s\n%s", _episode, COPYRIGHT); _status.viewState = V_EXIT; } -} // end of namespace Hugo +} // End of namespace Hugo |