summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValaris <Valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-02 01:01:18 +0000
committerValaris <Valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-02 01:01:18 +0000
commit1cd89d146dc11603342f44a91cb66ee40a8bfb19 (patch)
treec3d88e940c82d0abaabe84ec0b095c898713ce3e /src
parent206ee0b46b13eb2d81977cc15b9efc3ba31ad46e (diff)
downloadhercules-1cd89d146dc11603342f44a91cb66ee40a8bfb19.tar.gz
hercules-1cd89d146dc11603342f44a91cb66ee40a8bfb19.tar.bz2
hercules-1cd89d146dc11603342f44a91cb66ee40a8bfb19.tar.xz
hercules-1cd89d146dc11603342f44a91cb66ee40a8bfb19.zip
* Fixed compile errors and warning in chrif.c and charsave.c. [Valaris]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5160 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/charsave.c6
-rw-r--r--src/map/chrif.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/map/charsave.c b/src/map/charsave.c
index 5ce1fb194..e9fc888db 100644
--- a/src/map/charsave.c
+++ b/src/map/charsave.c
@@ -491,14 +491,14 @@ void charsave_save_scdata(int account_id, int char_id, struct status_change* sc_
for(i = 0; i < max_sc; i++)
{
- if (sc.data[i].timer == -1)
+ if (sc_data->data[i].timer == -1)
continue;
- timer = get_timer(sc.data[i].timer);
+ timer = get_timer(sc_data->data[i].timer);
if (timer == NULL || timer->func != status_change_timer || DIFF_TICK(timer->tick,tick) < 0)
continue;
sprintf (tmp_sql, "%s ('%d','%d','%hu','%d','%d','%d','%d','%d'),", tmp_sql, account_id, char_id,
- i, DIFF_TICK(timer->tick,tick), sc.data[i].val1, sc.data[i].val2, sc.data[i].val3, sc.data[i].val4);
+ i, DIFF_TICK(timer->tick,tick), sc_data->data[i].val1, sc_data->data[i].val2, sc_data->data[i].val3, sc_data->data[i].val4);
count++;
}
diff --git a/src/map/chrif.c b/src/map/chrif.c
index ffdb21cd3..eda3a14e5 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1158,7 +1158,7 @@ int chrif_save_scdata(struct map_session_data *sd)
#ifndef TXT_ONLY
if(charsave_method) //New 'Local' save
{
- charsave_save_scdata(sd->status.account_id, sd->status.char_id, sd->sc.data, MAX_STATUSCHANGE);
+ charsave_save_scdata(sd->status.account_id, sd->status.char_id, &sd->sc, MAX_STATUSCHANGE);
return 0;
}
#endif