diff options
author | shennetsind <ind@henn.et> | 2014-01-12 15:55:05 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-01-12 15:55:05 -0200 |
commit | e5c09299d9e6e29d65300bd9d82ab9f8c8325ad8 (patch) | |
tree | c8e681b89ffa34d58d2a10afdd793b5d88a211ca /src | |
parent | 34e5c90da462aa589c89646ca7b49376a4282eac (diff) | |
download | hercules-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.c | 1 |
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); |