* Fixed wrong index calculation in TXT char creation code (ref: r11410)

* Fixed SQL itemdb loading crash on NULL columns (ref: 11398)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11434 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage
2007-10-12 23:15:27 +00:00
parent 1e999c8051
commit 8ac3690bca
5 changed files with 22 additions and 15 deletions

View File

@@ -2952,7 +2952,7 @@ int parse_char(int fd)
// add new entry to the chars list
ARR_FIND( 0, MAX_CHARS, ch, sd->found_char[ch] == -1 );
if( ch < MAX_CHARS )
sd->found_char[ch] = i;
sd->found_char[ch] = i; // the char_id of the new char
}
RFIFOSKIP(fd,37);