summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 20:13:20 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 20:13:20 +0000
commitd0d7cb926f66b1e2dbf7e57291c00c27437dcc07 (patch)
treec4c2572c867232cc2470175d4cc3c5d9702da35d /src/char_sql/char.c
parentf9321b7d516e09bbbf634561780039aefdd7d973 (diff)
downloadhercules-d0d7cb926f66b1e2dbf7e57291c00c27437dcc07.tar.gz
hercules-d0d7cb926f66b1e2dbf7e57291c00c27437dcc07.tar.bz2
hercules-d0d7cb926f66b1e2dbf7e57291c00c27437dcc07.tar.xz
hercules-d0d7cb926f66b1e2dbf7e57291c00c27437dcc07.zip
- Fixed compilation of char_sql/char.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6896 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 9edcd5d00..72280cf87 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2207,7 +2207,7 @@ int save_accreg2(unsigned char* buf, int len) {
return 0;
}
-void char_read_fame_list()
+void char_read_fame_list(void)
{
int i;
struct fame_list fame_item;
@@ -2250,7 +2250,7 @@ void char_read_fame_list()
fame_item.fame = atoi(sql_row[1]);
strncpy(fame_item.name, sql_row[2], NAME_LENGTH);
- memcpy(&chemist_fame_list[i], fame_item, sizeof(fame_list));
+ memcpy(&chemist_fame_list[i], &fame_item, sizeof(struct fame_list));
if (++i == fame_list_size_chemist)
break;
@@ -2271,7 +2271,7 @@ void char_read_fame_list()
fame_item.fame = atoi(sql_row[1]);
strncpy(fame_item.name, sql_row[2], NAME_LENGTH);
- memcpy(&taekwon_fame_list[i], fame_item, sizeof(fame_list));
+ memcpy(&taekwon_fame_list[i], &fame_item, sizeof(struct fame_list));
if (++i == fame_list_size_taekwon)
break;