Follow up 7f4a7ba

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
This commit is contained in:
Cydh Ramdh 2014-05-23 10:51:56 +07:00
parent 7f4a7ba26f
commit dc834fb39f
3 changed files with 5 additions and 4 deletions

View File

@ -88,7 +88,7 @@ static void cashshop_read_db_txt( void ){
}
while( fgets( line, sizeof( line ), fp ) ){
char *str[2], *p;
char *str[3], *p;
int i;
lines++;
@ -103,7 +103,7 @@ static void cashshop_read_db_txt( void ){
if( *p == '\0' )
continue;
for( i = 0; i < 2; ++i ){
for( i = 0; i < 3; ++i ){
str[i] = p;
p = strchr( p, ',' );

View File

@ -17025,7 +17025,7 @@ void clif_ackworldinfo(struct map_session_data* sd) {
WFIFOHEAD(fd,packet_len(0x979));
WFIFOW(fd,0)=0x979;
//AID -> world name ?
safestrncpy((char*)WFIFOP(fd,2), '\0' /* World name */, 24);
safestrncpy((char*)WFIFOP(fd,2), "" /* World name */, 24);
safestrncpy((char*)WFIFOP(fd,26), sd->status.name, NAME_LENGTH);
WFIFOSET(fd,packet_len(0x979));
}

View File

@ -664,7 +664,8 @@ static void itemdb_read_itemgroup_sub(const char* filename, bool silent)
int group_id = -1;
unsigned int j, prob = 1;
uint16 nameid, amt = 1, dur = 0;
char *str[9], *p, rand_group = 1, announced = 0, named = 0, bound = 0;
uint8 rand_group = 1;
char *str[9], *p, announced = 0, named = 0, bound = 0;
struct s_item_group_random *random = NULL;
struct s_item_group_db *group = NULL;
bool found = false;