summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-05-10 05:31:49 -0300
committerpanikon <panikon@zoho.com>2014-05-10 05:31:49 -0300
commit90c8d73473f77422a2bd755951264f71514609ff (patch)
tree282fa47dc4ccea0300358fb2b507315e379358a7 /src/map/script.c
parent508d9cb5d10df9662ea9fb06aa4295ab7f282bc8 (diff)
downloadhercules-90c8d73473f77422a2bd755951264f71514609ff.tar.gz
hercules-90c8d73473f77422a2bd755951264f71514609ff.tar.bz2
hercules-90c8d73473f77422a2bd755951264f71514609ff.tar.xz
hercules-90c8d73473f77422a2bd755951264f71514609ff.zip
Optimized THQS_TTShop.txt and corrected a minor mistake
Added npc_market_data_db to inter-server.conf Added shop message to messages.conf Fixed small typo in clif_GM_kickack
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index e4cf7f227..068be8524 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2914,6 +2914,8 @@ int set_reg(struct script_state* st, TBL_PC* sd, int64 num, const char* name, co
return pc_setglobalreg_str(sd, num, str);
}
} else {// integer variable
+ // FIXME: This isn't safe, in 32bits systems we're converting a 64bit pointer
+ // to a 32bit int, this will lead to overflows! [Panikon]
int val = (int)__64BPTRSIZE(value);
if(script->str_data[script_getvarid(num)].type == C_PARAM) {