summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-05 16:17:10 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-05 16:17:10 +0000
commit6b459b8eeed83ca4c18782c85fa853993cc58731 (patch)
tree2ed9f3fda779f9b6ccc4c84f8e97dc95bff1f25f /src
parentc60e46dc4b1ebe41afbed417f7470ba59bee6918 (diff)
downloadhercules-6b459b8eeed83ca4c18782c85fa853993cc58731.tar.gz
hercules-6b459b8eeed83ca4c18782c85fa853993cc58731.tar.bz2
hercules-6b459b8eeed83ca4c18782c85fa853993cc58731.tar.xz
hercules-6b459b8eeed83ca4c18782c85fa853993cc58731.zip
Fixed a missing charserver include causing "warning: struct declared inside parameter list".
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10953 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c4
-rw-r--r--src/char_sql/char.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c
index f584c8fdc..dd5a63009 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2,10 +2,10 @@
// For more information, see LICENCE in the main folder
#include "../common/cbasetypes.h"
+#include "../common/mmo.h"
#include "../common/db.h"
#include "../common/lock.h"
#include "../common/malloc.h"
-#include "../common/mmo.h"
#include "../common/core.h"
#include "../common/socket.h"
#include "../common/strlib.h"
@@ -1008,7 +1008,6 @@ void mmo_char_sync(void)
int i, j, k;
int lock;
FILE *fp,*f_fp;
- //int *id = (int *) aMalloc(sizeof(int) * char_num);
CREATE_BUFFER(id, int, char_num);
// Sorting before save (by [Yor])
@@ -1034,7 +1033,6 @@ void mmo_char_sync(void)
char_log("WARNING: Server cannot save characters." RETCODE);
} else {
for(i = 0; i < char_num; i++) {
- // create only once the line, and save it in the 2 files (it's speeder than repeat twice the loop and create twice the line)
mmo_char_tostr(line, &char_dat[id[i]].status, char_dat[id[i]].global, char_dat[id[i]].global_num); // use of sorted index
fprintf(fp, "%s" RETCODE, line);
}
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index dd1935a6a..fc2b11288 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2,6 +2,7 @@
// For more information, see LICENCE in the main folder
#include "../common/cbasetypes.h"
+#include "../common/mmo.h"
#include "../common/db.h"
#include "../common/malloc.h"
#include "../common/showmsg.h"