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:
Vincent Stumpf
2021-02-25 15:01:44 -08:00
committed by GitHub
parent 7d6c1c9a38
commit ca779dad59
4 changed files with 26 additions and 20 deletions

View File

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