mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Various fixes detected using PVS-Studio static analyzer.
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
This commit is contained in:
parent
0f8c6dd382
commit
f50488a361
32 changed files with 41 additions and 39 deletions
|
@ -329,7 +329,7 @@ PropertyInfo VisualScriptBuiltinFunc::get_input_value_port_info(int p_idx) const
|
|||
case LOGIC_CLAMP: {
|
||||
if (p_idx==0)
|
||||
return PropertyInfo(Variant::REAL,"a");
|
||||
else if (p_idx==0)
|
||||
else if (p_idx==0) // is it ok to test p_idx == 0 twice?
|
||||
return PropertyInfo(Variant::REAL,"min");
|
||||
else
|
||||
return PropertyInfo(Variant::REAL,"max");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue