Use NULL instead of COND checks when appropriate
Restricted to scene
This commit is contained in:
@ -236,7 +236,7 @@ double Range::get_as_ratio() const {
|
||||
|
||||
void Range::_share(Node *p_range) {
|
||||
Range *r = Object::cast_to<Range>(p_range);
|
||||
ERR_FAIL_COND(!r);
|
||||
ERR_FAIL_NULL(r);
|
||||
share(r);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user