diff options
author | Smokexyz <sagunxp@gmail.com> | 2015-08-07 22:11:05 +0530 |
---|---|---|
committer | Smokexyz <sagunxp@gmail.com> | 2015-08-07 22:11:05 +0530 |
commit | c123298477c625becc19a4ae35fd51874fb05ae2 (patch) | |
tree | 69268c127955e04b10f360dd6db82df26ecdd971 /src | |
parent | e621d75bab0ebdee8f2708b5cd355a0965f709f3 (diff) | |
download | hercules-c123298477c625becc19a4ae35fd51874fb05ae2.tar.gz hercules-c123298477c625becc19a4ae35fd51874fb05ae2.tar.bz2 hercules-c123298477c625becc19a4ae35fd51874fb05ae2.tar.xz hercules-c123298477c625becc19a4ae35fd51874fb05ae2.zip |
Update itemdb.c
This fixes the script loading issue mentioned here -> http://herc.ws/board/topic/10249-issue-with-item-db-after-update/
Diffstat (limited to 'src')
-rw-r--r-- | src/map/itemdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 4ebe282a2..09303978c 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1616,15 +1616,15 @@ int itemdb_readdb_sql_sub(Sql *handle, int n, const char *source) { id.stack.storage = (stack_flag&4)!=0; id.stack.guildstorage = (stack_flag&8)!=0; } - SQL->GetData(handle, 30, &data, NULL); + SQL->GetData(handle, 31, &data, NULL); if (data) { id.view_id = atoi(data); if (id.view_id) id.flag.available = 1; } - SQL->GetData(handle, 31, &data, NULL); id.script = data && *data ? script->parse(data, source, -id.nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; - SQL->GetData(handle, 32, &data, NULL); id.equip_script = data && *data ? script->parse(data, source, -id.nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; - SQL->GetData(handle, 33, &data, NULL); id.unequip_script = data && *data ? script->parse(data, source, -id.nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; + SQL->GetData(handle, 32, &data, NULL); id.script = data && *data ? script->parse(data, source, -id.nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; + SQL->GetData(handle, 33, &data, NULL); id.equip_script = data && *data ? script->parse(data, source, -id.nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; + SQL->GetData(handle, 34, &data, NULL); id.unequip_script = data && *data ? script->parse(data, source, -id.nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; return itemdb->validate_entry(&id, n, source); } |