diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-22 01:43:08 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-22 01:43:08 +0000 |
commit | 8dd2205933736e7e0124c83151c50450a6f05463 (patch) | |
tree | f4da0045bb000571467ee82a18d1f647da2ae18f /src/common | |
parent | bf3c2445e0f25db026c22fe10e31250e7da7a2d1 (diff) | |
download | hercules-8dd2205933736e7e0124c83151c50450a6f05463.tar.gz hercules-8dd2205933736e7e0124c83151c50450a6f05463.tar.bz2 hercules-8dd2205933736e7e0124c83151c50450a6f05463.tar.xz hercules-8dd2205933736e7e0124c83151c50450a6f05463.zip |
* Added a sanity check for MAX_ZENY (doesn't compile if too big).
* Redid the buildin_query_sql function. (fixes bugreport:81).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11268 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/mmo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h index 619c75295..8e757d81a 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -497,4 +497,9 @@ enum { JOB_SOUL_LINKER, }; +// sanity checks... +#if MAX_ZENY > INT_MAX +#error MAX_ZENY is too big +#endif + #endif /* _MMO_H_ */ |