mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
CLink: Collapse null checking
This commit is contained in:
@@ -111,9 +111,7 @@ public:
|
|||||||
|
|
||||||
uint32 SenderIndex() const
|
uint32 SenderIndex() const
|
||||||
{
|
{
|
||||||
CScriptObject *pSender = mpArea->InstanceByID(mSenderID);
|
if (const CScriptObject* pSender = mpArea->InstanceByID(mSenderID))
|
||||||
|
|
||||||
if (pSender)
|
|
||||||
{
|
{
|
||||||
for (uint32 iLink = 0; iLink < pSender->NumLinks(ELinkType::Outgoing); iLink++)
|
for (uint32 iLink = 0; iLink < pSender->NumLinks(ELinkType::Outgoing); iLink++)
|
||||||
{
|
{
|
||||||
@@ -127,9 +125,7 @@ public:
|
|||||||
|
|
||||||
uint32 ReceiverIndex() const
|
uint32 ReceiverIndex() const
|
||||||
{
|
{
|
||||||
CScriptObject *pReceiver = mpArea->InstanceByID(mReceiverID);
|
if (const CScriptObject* pReceiver = mpArea->InstanceByID(mReceiverID))
|
||||||
|
|
||||||
if (pReceiver)
|
|
||||||
{
|
{
|
||||||
for (uint32 iLink = 0; iLink < pReceiver->NumLinks(ELinkType::Incoming); iLink++)
|
for (uint32 iLink = 0; iLink < pReceiver->NumLinks(ELinkType::Incoming); iLink++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user