Remove assignment and declarations in if statements
After discussing with @reduz and @akien-mga it was decided that we do not allow assignments or declarations in if statements. This PR removes the instances of this I could find by automated means.
This commit is contained in:
parent
d1cb73b47a
commit
8230bf0a2f
17 changed files with 87 additions and 49 deletions
|
|
@ -137,7 +137,8 @@ void PathFollow2D::_notification(int p_what) {
|
|||
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
|
||||
if ((path = Object::cast_to<Path2D>(get_parent()))) {
|
||||
path = Object::cast_to<Path2D>(get_parent());
|
||||
if (path) {
|
||||
_update_transform();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue