mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +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:
+1
-1
@@ -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, " ");
|
||||||
|
|||||||
Reference in New Issue
Block a user