memory bugs fixed

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1278 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
amber
2005-03-23 18:54:09 +00:00
parent 898d7024a9
commit cb34e8c48a
7 changed files with 59 additions and 2 deletions

View File

@@ -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);
}