From 3d2f560436175b3e73ee989d450471e94ae20b55 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 5 Apr 2023 10:23:54 -0400 Subject: [PATCH] [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. --- zone/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/client.cpp b/zone/client.cpp index 650cff12f..9e585c843 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -3957,7 +3957,7 @@ void Client::SendWindow( case 1: { char name[64] = ""; strcpy(name, target->GetName()); - if (target->GetLastName()) { + if (strlen(target->GetLastName()) > 0) { char last_name[64] = ""; strcpy(last_name, target->GetLastName()); strcat(name, " ");