Beret - Apr 11, 2015 20:17
[color=rgb(68,68,68)][font='Segoe UI']Some mistakes[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']are appearing on[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']my[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']emulator,[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']the error[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']points to[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']line[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']int_quest[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']line[/font][/color][color=rgb(68,68,68)][font='Segoe UI'] [/font][/color][color=rgb(68,68,68)][font='Segoe UI']249.[/font][/color]
[color=rgb(68,68,68)][font='Segoe UI']code:[/font][/color]
[code=auto:0]
void mapif_send_quests(int fd, int char_id, struct quest *tmp_questlog, int num_quests)
{
nullpo_retv(tmp_questlog);
WFIFOHEAD(fd,num_quests*sizeof(struct quest)+8);
WFIFOW(fd,0) = 0x3860;
WFIFOW(fd,2) = num_quests*sizeof(struct quest)+8;
WFIFOL(fd,4) = char_id;
if (num_quests > 0)
memcpy(WFIFOP(fd,8), tmp_questlog, sizeof(struct quest)*num_quests);
WFIFOSET(fd,num_quests*sizeof(struct quest)+8);}
[/code]
error:
[code=auto:0]
nullpo_retv(tmp_questlog);
[/code]