summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-11-17 15:43:13 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-11-17 15:43:13 +0000
commit3dad62b22c6662d2ab290022c261375e71a9ee6e (patch)
tree3443869df7b6b0ae600e3493ac3de6fe84bfe4f2 /src/char_sql
parent2af3aa8ca2595b507a9ab2483fd34cfdfd39ccb1 (diff)
downloadhercules-3dad62b22c6662d2ab290022c261375e71a9ee6e.tar.gz
hercules-3dad62b22c6662d2ab290022c261375e71a9ee6e.tar.bz2
hercules-3dad62b22c6662d2ab290022c261375e71a9ee6e.tar.xz
hercules-3dad62b22c6662d2ab290022c261375e71a9ee6e.zip
- Some "expire_time" = 0 considerations. Please update. (Bugreport 2451)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13373 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/int_auction.c1
-rw-r--r--src/char_sql/int_mail.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/char_sql/int_auction.c b/src/char_sql/int_auction.c
index 11554e9a1..fa9654f90 100644
--- a/src/char_sql/int_auction.c
+++ b/src/char_sql/int_auction.c
@@ -216,6 +216,7 @@ void inter_auctions_fromsql(void)
item->identify = 1;
item->amount = 1;
+ item->expire_time = 0;
for( i = 0; i < MAX_SLOTS; i++ )
{
diff --git a/src/char_sql/int_mail.c b/src/char_sql/int_mail.c
index 968ddf3ee..5652884cb 100644
--- a/src/char_sql/int_mail.c
+++ b/src/char_sql/int_mail.c
@@ -61,6 +61,7 @@ static int mail_fromsql(int char_id, struct mail_data* md)
Sql_GetData(sql_handle,12, &data, NULL); item->refine = atoi(data);
Sql_GetData(sql_handle,13, &data, NULL); item->attribute = atoi(data);
Sql_GetData(sql_handle,14, &data, NULL); item->identify = atoi(data);
+ item->expire_time = 0;
for (j = 0; j < MAX_SLOTS; j++)
{
@@ -176,6 +177,8 @@ static bool mail_loadmessage(int mail_id, struct mail_message* msg)
Sql_GetData(sql_handle,12, &data, NULL); msg->item.refine = atoi(data);
Sql_GetData(sql_handle,13, &data, NULL); msg->item.attribute = atoi(data);
Sql_GetData(sql_handle,14, &data, NULL); msg->item.identify = atoi(data);
+ msg->item.expire_time = 0;
+
for( j = 0; j < MAX_SLOTS; j++ )
{
Sql_GetData(sql_handle,15 + j, &data, NULL);