Replace NULL with nullptr
This commit is contained in:
@@ -225,7 +225,7 @@ bool AnimationNodeStateMachinePlayback::_travel(AnimationNodeStateMachine *p_sta
|
||||
}
|
||||
|
||||
//find the last cost transition
|
||||
List<int>::Element *least_cost_transition = NULL;
|
||||
List<int>::Element *least_cost_transition = nullptr;
|
||||
float least_cost = 1e20;
|
||||
|
||||
for (List<int>::Element *E = open_list.front(); E; E = E->next()) {
|
||||
@@ -530,7 +530,7 @@ void AnimationNodeStateMachine::get_parameter_list(List<PropertyInfo> *r_list) c
|
||||
List<StringName> advance_conditions;
|
||||
for (int i = 0; i < transitions.size(); i++) {
|
||||
StringName ac = transitions[i].transition->get_advance_condition_name();
|
||||
if (ac != StringName() && advance_conditions.find(ac) == NULL) {
|
||||
if (ac != StringName() && advance_conditions.find(ac) == nullptr) {
|
||||
advance_conditions.push_back(ac);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user