From 8dd2205933736e7e0124c83151c50450a6f05463 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sat, 22 Sep 2007 01:43:08 +0000 Subject: * 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 --- src/common/mmo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/mmo.h') 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_ */ -- cgit v1.2.3-60-g2f50