aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25')
-rw-r--r--engines/sword25/math/walkregion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/math/walkregion.cpp b/engines/sword25/math/walkregion.cpp
index c42bcedf83..6fbf489bdc 100644
--- a/engines/sword25/math/walkregion.cpp
+++ b/engines/sword25/math/walkregion.cpp
@@ -46,7 +46,7 @@ namespace Sword25 {
// Constants
// -----------------------------------------------------------------------------
-static const int infinity = (~(-1));
+static const int infinity = 0x7fffffff;
// -----------------------------------------------------------------------------
// Constructor / Destructor