Clean up instance map name generation (#5704)
Put the instance map name generation in a seperate function Fix some compiler warnings Fixes #5691 Thanks @RadianFord
This commit is contained in:
@@ -822,7 +822,7 @@ int chclif_parse_charselect(int fd, struct char_session_data* sd,uint32 ipl){
|
||||
WFIFOHEAD(fd, 24);
|
||||
WFIFOW(fd, 0) = 0x840;
|
||||
WFIFOW(fd, 2) = 24;
|
||||
memcpy(WFIFOP(fd, 4), "0", 20); // we can't send it empty (otherwise the list will pop up)
|
||||
strncpy(WFIFOCP(fd, 4), "0", 20); // we can't send it empty (otherwise the list will pop up)
|
||||
WFIFOSET(fd, 24);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user