diff options
author | Bardur Arantsson <bardur@scientician.net> | 2013-09-08 11:49:32 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2013-09-27 14:46:43 +0200 |
commit | 88767d9fd11638b90e16da05426b19da9ef2b9b9 (patch) | |
tree | 185a93139f9b119bbdebd840cda377d1550c93a8 /src/types.h | |
parent | 7e88e06c6ea90c48c225ac89a7d7685dfa76cd65 (diff) |
Fix an overflow with allocation values
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.h b/src/types.h index b07e6954..22bc3bf5 100644 --- a/src/types.h +++ b/src/types.h @@ -186,8 +186,8 @@ struct object_kind u32b oflags4; /* Obvious Flags, set 4 */ u32b oflags5; /* Obvious Flags, set 5 */ - byte locale[4]; /* Allocation level(s) */ - byte chance[4]; /* Allocation chance(s) */ + byte locale[ALLOCATION_MAX]; /* Allocation level(s) */ + byte chance[ALLOCATION_MAX]; /* Allocation chance(s) */ byte level; /* Level */ byte extra; /* Something */ |