aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/fonttext.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2019-05-27 14:45:13 +0300
committerFilippos Karapetis2019-05-27 14:53:43 +0300
commitf4e8eed13d7da5bcd87db7424358bf0d8759208f (patch)
tree8d1027565f453c6c14fe5f82abff449ead741c7c /engines/sludge/fonttext.cpp
parent174721e911497ab232915da5ebed7c5d5f2b86ba (diff)
downloadscummvm-rg350-f4e8eed13d7da5bcd87db7424358bf0d8759208f.tar.gz
scummvm-rg350-f4e8eed13d7da5bcd87db7424358bf0d8759208f.tar.bz2
scummvm-rg350-f4e8eed13d7da5bcd87db7424358bf0d8759208f.zip
SLUDGE: Fix MSVC warnings
- Fix invalid check with empty() - Change float suffixes to uppercase - Fix potentially uninitialized variables
Diffstat (limited to 'engines/sludge/fonttext.cpp')
-rw-r--r--engines/sludge/fonttext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/fonttext.cpp b/engines/sludge/fonttext.cpp
index da380f4f0b..6163c445ac 100644
--- a/engines/sludge/fonttext.cpp
+++ b/engines/sludge/fonttext.cpp
@@ -175,7 +175,7 @@ bool TextManager::loadFont(int filenum, const Common::String &charOrder, int h)
// load & save
void TextManager::saveFont(Common::WriteStream *stream) {
stream->writeByte(!_fontTable.empty());
- if (!_fontTable.empty() > 0) {
+ if (!_fontTable.empty()) {
stream->writeUint16BE(_loadedFontNum);
stream->writeUint16BE(_fontHeight);
writeString(_fontOrder.getUTF8String(), stream);