summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-04-12 02:52:48 -0300
committerpanikon <panikon@zoho.com>2014-04-12 02:52:48 -0300
commit93ebe55b4db88c372436cc755b990453528d3364 (patch)
tree836b1b59573430c21ea191c4615dbf97cb347bc8 /src/char
parentc1f916acdd60282af3838a204e9ec959e1beac12 (diff)
parentf4a566fc7f7bd0e9bbbe01c7341150ba3c12a03f (diff)
downloadhercules-93ebe55b4db88c372436cc755b990453528d3364.tar.gz
hercules-93ebe55b4db88c372436cc755b990453528d3364.tar.bz2
hercules-93ebe55b4db88c372436cc755b990453528d3364.tar.xz
hercules-93ebe55b4db88c372436cc755b990453528d3364.zip
Merge branch 'master' of http://github.com/HerculesWS/Hercules
82af3838a204e9ec959e1beac12.
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_storage.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/char/int_storage.c b/src/char/int_storage.c
index c01e3619e..8c49c038d 100644
--- a/src/char/int_storage.c
+++ b/src/char/int_storage.c
@@ -332,15 +332,16 @@ int mapif_parse_ItemBoundRetrieve_sub(int fd)
// Removes any view id that was set by an item that was removed
if( bound_qt ) {
- // Verifies equip bitmasks (see item.equip) and handles the sql statement
-#define CHECK_REMOVE(var,mask,token) do {\
- if((var&mask)) {\
- if((var) != mask && s) StrBuf->AppendStr((&buf), ",");\
- StrBuf->AppendStr((&buf),"`"#token"`='0'");\
- var &= ~mask;\
- s++;\
- }\
- } while(0)
+
+#define CHECK_REMOVE(var,mask,token) do { /* Verifies equip bitmasks (see item.equip) and handles the sql statement */ \
+ if ((var)&(mask)) { \
+ if ((var) != (mask) && s) StrBuf->AppendStr(&buf, ","); \
+ StrBuf->AppendStr(&buf,"`"#token"`='0'"); \
+ (var) &= ~(mask); \
+ s++; \
+ } \
+} while(0)
+
StrBuf->Clear(&buf);
StrBuf->Printf(&buf, "UPDATE `%s` SET ", char_db);
for( j = 0; j < bound_qt; j++ ) {