You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
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:
@@ -159,7 +159,8 @@ void FileAccessWindows::seek_end(int64_t p_position) {
|
||||
size_t FileAccessWindows::get_pos() const {
|
||||
|
||||
size_t aux_position = 0;
|
||||
if (!(aux_position = ftell(f))) {
|
||||
aux_position = ftell(f);
|
||||
if (!aux_position) {
|
||||
check_errors();
|
||||
};
|
||||
return aux_position;
|
||||
|
||||
Reference in New Issue
Block a user