summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-01-12 15:55:05 -0200
committershennetsind <ind@henn.et>2014-01-12 15:55:05 -0200
commite5c09299d9e6e29d65300bd9d82ab9f8c8325ad8 (patch)
treec8e681b89ffa34d58d2a10afdd793b5d88a211ca /src
parent34e5c90da462aa589c89646ca7b49376a4282eac (diff)
downloadhercules-e5c09299d9e6e29d65300bd9d82ab9f8c8325ad8.tar.gz
hercules-e5c09299d9e6e29d65300bd9d82ab9f8c8325ad8.tar.bz2
hercules-e5c09299d9e6e29d65300bd9d82ab9f8c8325ad8.tar.xz
hercules-e5c09299d9e6e29d65300bd9d82ab9f8c8325ad8.zip
Fixed Bug 7967
temporary pc regs (@) were being misflagged. http://hercules.ws/board/tracker/issue-7967-scriptc-leaks/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 30636f40b..0a1a474ad 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8097,6 +8097,7 @@ void pc_setregstr(struct map_session_data* sd, int64 reg, const char* str) {
p = ers_alloc(pc->str_reg_ers, struct script_reg_str);
p->value = aStrdup(str);
+ p->flag.type = 1;
if( sd->var_db->put(sd->var_db,DB->i642key(reg),DB->ptr2data(p),&prev) ) {
p = DB->data2ptr(&prev);