mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 07:02:30 +00:00
[Cleanup] Fix GetLastName() length check in Client::SendWindow() (#3263)
# Notes - `target->GetLastName()` was always true, we need to make sure the target has a last name.
This commit is contained in:
parent
a0768d2d28
commit
3d2f560436
@ -3957,7 +3957,7 @@ void Client::SendWindow(
|
|||||||
case 1: {
|
case 1: {
|
||||||
char name[64] = "";
|
char name[64] = "";
|
||||||
strcpy(name, target->GetName());
|
strcpy(name, target->GetName());
|
||||||
if (target->GetLastName()) {
|
if (strlen(target->GetLastName()) > 0) {
|
||||||
char last_name[64] = "";
|
char last_name[64] = "";
|
||||||
strcpy(last_name, target->GetLastName());
|
strcpy(last_name, target->GetLastName());
|
||||||
strcat(name, " ");
|
strcat(name, " ");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user