aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorMax Horn2009-09-01 13:02:47 +0000
committerMax Horn2009-09-01 13:02:47 +0000
commit8e28469f1f8aa1c3b7ade6bcba9bef1d6dec3b8c (patch)
tree3b789e98c685476c606b049e38053c43a671ad60 /engines/sword2
parent2ed53f98b478854c1df3ed43a46103bfb35596d5 (diff)
downloadscummvm-rg350-8e28469f1f8aa1c3b7ade6bcba9bef1d6dec3b8c.tar.gz
scummvm-rg350-8e28469f1f8aa1c3b7ade6bcba9bef1d6dec3b8c.tar.bz2
scummvm-rg350-8e28469f1f8aa1c3b7ade6bcba9bef1d6dec3b8c.zip
Coding best practice: Always use enums instead of #defines to define integer constants (for many good reasons)
svn-id: r43881
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/memory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sword2/memory.h b/engines/sword2/memory.h
index f01b85f4b3..e00eacb032 100644
--- a/engines/sword2/memory.h
+++ b/engines/sword2/memory.h
@@ -28,7 +28,9 @@
#ifndef SWORD2_MEMORY_H
#define SWORD2_MEMORY_H
-#define MAX_MEMORY_BLOCKS 999
+enum {
+ MAX_MEMORY_BLOCKS = 999
+};
namespace Sword2 {