diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-10 08:42:41 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-10 08:42:41 +0000 |
commit | 8f97d76672577004e4e8b43f68e013b80e24b6e0 (patch) | |
tree | 58b2c5d6931e46b81b93fd8b3a6f7d7db9fe4364 /src/char_sql | |
parent | ff07e78eefa511c7ae363a00bf9fbc761240552e (diff) | |
download | hercules-8f97d76672577004e4e8b43f68e013b80e24b6e0.tar.gz hercules-8f97d76672577004e4e8b43f68e013b80e24b6e0.tar.bz2 hercules-8f97d76672577004e4e8b43f68e013b80e24b6e0.tar.xz hercules-8f97d76672577004e4e8b43f68e013b80e24b6e0.zip |
Renamed 'storage_' to 'items' in the storage_data structure.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12933 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/int_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/int_storage.c b/src/char_sql/int_storage.c index f680199a7..cce358d76 100644 --- a/src/char_sql/int_storage.c +++ b/src/char_sql/int_storage.c @@ -20,7 +20,7 @@ /// Save guild_storage data to sql int storage_tosql(int account_id, struct storage_data* p) { - memitemdata_to_sql(p->storage_, MAX_STORAGE, account_id, TABLE_STORAGE); + memitemdata_to_sql(p->items, MAX_STORAGE, account_id, TABLE_STORAGE); //ShowInfo ("storage save to DB - account: %d\n", account_id); return 0; } @@ -53,7 +53,7 @@ int storage_fromsql(int account_id, struct storage_data* p) for( i = 0; i < MAX_STORAGE && SQL_SUCCESS == Sql_NextRow(sql_handle); ++i ) { - item = &p->storage_[i]; + item = &p->items[i]; Sql_GetData(sql_handle, 0, &data, NULL); item->id = atoi(data); Sql_GetData(sql_handle, 1, &data, NULL); item->nameid = atoi(data); Sql_GetData(sql_handle, 2, &data, NULL); item->amount = atoi(data); |