summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDastgir <dastgir@users.noreply.github.com>2015-08-09 14:21:01 +0530
committerDastgir <dastgir@users.noreply.github.com>2015-08-09 14:21:01 +0530
commit1ba65502886eebedc7befa56cff559b4af624992 (patch)
tree69268c127955e04b10f360dd6db82df26ecdd971
parente621d75bab0ebdee8f2708b5cd355a0965f709f3 (diff)
parentc123298477c625becc19a4ae35fd51874fb05ae2 (diff)
downloadhercules-1ba65502886eebedc7befa56cff559b4af624992.tar.gz
hercules-1ba65502886eebedc7befa56cff559b4af624992.tar.bz2
hercules-1ba65502886eebedc7befa56cff559b4af624992.tar.xz
hercules-1ba65502886eebedc7befa56cff559b4af624992.zip
Merge pull request #624 from Smokexyz/patch-2
Fix item loading via sql
-rw-r--r--src/map/itemdb.c8
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);
}