[Scummvm-git-logs] scummvm master -> 2e53f76ed854a6a7717dd1a978a978a064707d18
digitall
noreply at scummvm.org
Fri Mar 25 09:07:07 UTC 2022
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:
2e53f76ed8 ULTIMA: ULTIMA8: Fix Type Limits GCC Compiler Warning
Commit: 2e53f76ed854a6a7717dd1a978a978a064707d18
https://github.com/scummvm/scummvm/commit/2e53f76ed854a6a7717dd1a978a978a064707d18
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-25T09:05:27Z
Commit Message:
ULTIMA: ULTIMA8: Fix Type Limits GCC Compiler Warning
This appears to be a missed equals symbol in cut and paste when
compared to the comment so correcting.
Changed paths:
engines/ultima/ultima8/games/treasure_loader.cpp
diff --git a/engines/ultima/ultima8/games/treasure_loader.cpp b/engines/ultima/ultima8/games/treasure_loader.cpp
index 3d9848d0aeb..c3acc586645 100644
--- a/engines/ultima/ultima8/games/treasure_loader.cpp
+++ b/engines/ultima/ultima8/games/treasure_loader.cpp
@@ -106,7 +106,7 @@ bool TreasureLoader::internalParse(const Std::string &desc, TreasureInfo &ti,
}
// validate the frames are > 0 and < max frame
for (unsigned int j = 0; j < ti._frames.size(); j++) {
- if (ti._frames[j] < 0 || ti._frames[j] > 65535) {
+ if (ti._frames[j] <= 0 || ti._frames[j] > 65535) {
warning("Invalid treasure frame in list '%s'", val.c_str());
return false;
}
More information about the Scummvm-git-logs
mailing list