mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Re-define nil as nullptr, cleaning up some potential issues along the way
This commit is contained in:
@ -243,7 +243,7 @@ bool plClimbTriggerComponent::Convert(plMaxNode *node, plErrorMsg *pErrMsg)
|
||||
plKey nilKey = nil;
|
||||
plKey target = node->GetSceneObject()->GetKey();
|
||||
plClimbMsg *enterMsg = nil;
|
||||
if(enterCommand != plClimbMsg::kNoCommand)
|
||||
if (enterCommand != plClimbMsg::kNoCommand)
|
||||
{
|
||||
enterMsg = new plClimbMsg(nilKey, nilKey, enterCommand, direction, enterStatus, target);
|
||||
enterMsg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
@ -252,7 +252,7 @@ bool plClimbTriggerComponent::Convert(plMaxNode *node, plErrorMsg *pErrMsg)
|
||||
}
|
||||
|
||||
plClimbMsg *exitMsg = nil;
|
||||
if(exitCommand != nil)
|
||||
if (exitCommand != plClimbMsg::kNoCommand)
|
||||
{
|
||||
exitMsg = new plClimbMsg(nilKey, nilKey, exitCommand, direction, exitStatus, target);
|
||||
exitMsg->SetBCastFlag(plMessage::kPropagateToModifiers);
|
||||
|
Reference in New Issue
Block a user