diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-23 18:54:09 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-23 18:54:09 +0000 |
commit | ac46c901463f925504b6a3872a21e64605e3db10 (patch) | |
tree | 4b7d5b9db8f19ee6d416a1524ecafb0d65744807 /src/char_sql | |
parent | 300facbcd059becdc8addac8a2f392452fea5fa0 (diff) | |
download | hercules-ac46c901463f925504b6a3872a21e64605e3db10.tar.gz hercules-ac46c901463f925504b6a3872a21e64605e3db10.tar.bz2 hercules-ac46c901463f925504b6a3872a21e64605e3db10.tar.xz hercules-ac46c901463f925504b6a3872a21e64605e3db10.zip |
memory bugs fixed
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1278 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/int_storage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/char_sql/int_storage.c b/src/char_sql/int_storage.c index 9bb5318c6..7f059fcf8 100644 --- a/src/char_sql/int_storage.c +++ b/src/char_sql/int_storage.c @@ -146,6 +146,8 @@ int guild_storage_fromsql(int guild_id, struct guild_storage *p){ p->storage[i].card[2]= atoi(sql_row[9]); p->storage[i].card[3]= atoi(sql_row[10]); p->storage_amount = ++i; + if (i >= MAX_GUILD_STORAGE) + break; } mysql_free_result(sql_res); } |