Skip to content

Commit 9355d9d

Browse files
committed
fix: case-insensitive ghost_spec_pov
1 parent f008aa6 commit 9355d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Features/Demo/GhostEntity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ CON_COMMAND_F_COMPLETION(ghost_spec_pov, "ghost_spec_pov <name|none> - spectate
564564
if (networkManager.isConnected && networkManager.spectator) {
565565
networkManager.ghostPoolLock.lock();
566566
for (auto ghost : networkManager.ghostPool) {
567-
if (ghost->name == args[1]) {
567+
if (Utils::ICompare(ghost->name, args[1])) {
568568
GhostEntity::StartFollowing(ghost.get());
569569
found = true;
570570
break;
@@ -573,7 +573,7 @@ CON_COMMAND_F_COMPLETION(ghost_spec_pov, "ghost_spec_pov <name|none> - spectate
573573
networkManager.ghostPoolLock.unlock();
574574
} else {
575575
for (auto &ghost : demoGhostPlayer.GetAllGhosts()) {
576-
if (ghost.name == args[1]) {
576+
if (Utils::ICompare(ghost->name, args[1])) {
577577
GhostEntity::StartFollowing(&ghost);
578578
found = true;
579579
break;

0 commit comments

Comments
 (0)