Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
parent
5b7f62af55
commit
0103af1ddd
240 changed files with 3390 additions and 3431 deletions
|
|
@ -357,12 +357,12 @@ void ProjectSettingsEditor::_action_edited(const String &p_name, const Dictionar
|
|||
|
||||
} else {
|
||||
// Events changed
|
||||
int event_count = ((Array)p_action["events"]).size();
|
||||
int act_event_count = ((Array)p_action["events"]).size();
|
||||
int old_event_count = ((Array)old_val["events"]).size();
|
||||
|
||||
if (event_count == old_event_count) {
|
||||
if (act_event_count == old_event_count) {
|
||||
undo_redo->create_action(TTR("Edit Input Action Event"));
|
||||
} else if (event_count > old_event_count) {
|
||||
} else if (act_event_count > old_event_count) {
|
||||
undo_redo->create_action(TTR("Add Input Action Event"));
|
||||
} else {
|
||||
undo_redo->create_action(TTR("Remove Input Action Event"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue