You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 17:36:07 +00:00
Fix CppCheck 'duplicateExpression' warning
BTW, all three cases looks similar. It would be nice to refactor it to avoid repeating code.
This commit is contained in:
@@ -571,7 +571,7 @@ Error ResourceInteractiveLoaderXML::parse_property(Variant& r_v, String &r_name)
|
||||
int w=width.to_int();
|
||||
int h=height.to_int();
|
||||
|
||||
if (w == 0 && w == 0) {
|
||||
if (w == 0 && h == 0) {
|
||||
//r_v = Image(w, h, imgformat);
|
||||
r_v=Image();
|
||||
String sdfsdfg;
|
||||
|
||||
Reference in New Issue
Block a user