aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/subroutine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/subroutine.cpp b/engines/agos/subroutine.cpp
index 26dfde8403..d7919f028d 100644
--- a/engines/agos/subroutine.cpp
+++ b/engines/agos/subroutine.cpp
@@ -220,7 +220,7 @@ Subroutine *AGOSEngine::getSubroutineByID(uint subroutineId) {
}
void AGOSEngine::alignTableMem() {
- if ((unsigned long)_tablesHeapPtr & 3) {
+ if (!IS_ALIGNED(_tablesHeapPtr, 4)) {
_tablesHeapPtr += 2;
_tablesHeapCurPos += 2;
}