From 6cc5c455d94740f0a6089cf7e34509c216ec04d2 Mon Sep 17 00:00:00 2001 From: Cjreek Date: Tue, 8 Aug 2023 23:39:52 +0200 Subject: [PATCH] C++ified the code --- Plugins/Player/Player.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Plugins/Player/Player.cpp b/Plugins/Player/Player.cpp index 9960d40729..31dab454ef 100644 --- a/Plugins/Player/Player.cpp +++ b/Plugins/Player/Player.cpp @@ -1956,9 +1956,8 @@ NWNX_EXPORT ArgumentStack SendPartyInvite(ArgumentStack&& args) NWNX_EXPORT ArgumentStack GetTURD(ArgumentStack&& args) { const auto oidPlayer = args.extract(); - - CExoLinkedListInternal* pTURDS = Utils::GetModule()->m_lstTURDList.m_pcExoLinkedListInternal; - if (pTURDS) + + if (CExoLinkedListInternal* pTURDS = Utils::GetModule()->m_lstTURDList.m_pcExoLinkedListInternal) { for (CExoLinkedListPosition pNode = pTURDS->pHead; pNode; pNode = pNode->pNext) {