Move to shared pointer

This commit is contained in:
David Markowitz
2023-06-07 00:23:50 -07:00
parent ea9d0d8592
commit 9e9e4dc087
219 changed files with 743 additions and 748 deletions

View File

@@ -47,8 +47,8 @@ bool NtFactionSpyServer::IsSpy(Entity* self, Entity* possibleSpy) {
if (!spyData.missionID || !spyData.flagID || !spyData.itemID)
return false;
auto* missionComponent = possibleSpy->GetComponent<MissionComponent>();
auto* inventoryComponent = possibleSpy->GetComponent<InventoryComponent>();
auto missionComponent = possibleSpy->GetComponent<MissionComponent>();
auto inventoryComponent = possibleSpy->GetComponent<InventoryComponent>();
auto* character = possibleSpy->GetCharacter();
// A player is a spy if they have the spy mission, have the spy equipment equipped and don't have the spy flag set yet