summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorvalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-05 20:59:29 +0000
committervalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-05 20:59:29 +0000
commitac593dc91efaf23a881e8a8b86f3a72c6621cb36 (patch)
tree9ad7cefc60cc9251b3e497cccf10e544e43d28a5 /src/char
parente35ad7efa0336d241f252ccf6bbaed2e2fa4598d (diff)
downloadhercules-ac593dc91efaf23a881e8a8b86f3a72c6621cb36.tar.gz
hercules-ac593dc91efaf23a881e8a8b86f3a72c6621cb36.tar.bz2
hercules-ac593dc91efaf23a881e8a8b86f3a72c6621cb36.tar.xz
hercules-ac593dc91efaf23a881e8a8b86f3a72c6621cb36.zip
Fixed crash from guild skill point allocation, there seems to be a problem with guilds loading still.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@16 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_guild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index a0ba5becb..025a6e6c7 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -629,7 +629,7 @@ int guild_calcinfo(struct guild *g) {
struct guild before = *g;
// スキルIDの設定
- for(i = 0; i < 20; i++)
+ for(i = 0; i < MAX_GUILDSKILL; i++)
g->skill[i].id = i + 10000;
// ギルドレベル
@@ -979,7 +979,7 @@ int mapif_parse_CreateGuild(int fd, int account_id, char *name, struct guild_mem
// ここでギルド情報計算が必要と思われる
g->max_member = 16;
g->average_lv = master->lv;
- for(i = 0; i < 20; i++)
+ for(i = 0; i < MAX_GUILDSKILL; i++)
g->skill[i].id = i + 10000;
numdb_insert(guild_db, g->guild_id, g);