mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 07:01:06 +00:00
fix two reading uninitialized pointers
fixed in: tools/editor/project_settings.cpp scene/gui/graph_edit.cpp
This commit is contained in:
parent
19ea9ae1e5
commit
bf7f9244a9
2 changed files with 2 additions and 2 deletions
|
|
@ -617,7 +617,7 @@ void GraphEdit::_input_event(const InputEvent& p_ev) {
|
||||||
|
|
||||||
if (b.button_index==BUTTON_LEFT && b.pressed) {
|
if (b.button_index==BUTTON_LEFT && b.pressed) {
|
||||||
|
|
||||||
GraphNode *gn;
|
GraphNode *gn = NULL;
|
||||||
for(int i=get_child_count()-1;i>=0;i--) {
|
for(int i=get_child_count()-1;i>=0;i--) {
|
||||||
|
|
||||||
gn=get_child(i)->cast_to<GraphNode>();
|
gn=get_child(i)->cast_to<GraphNode>();
|
||||||
|
|
|
||||||
|
|
@ -966,7 +966,7 @@ void ProjectSettings::_autoload_delete(Object *p_item,int p_column, int p_button
|
||||||
undo_redo->commit_action();
|
undo_redo->commit_action();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
TreeItem *swap;
|
TreeItem *swap = NULL;
|
||||||
|
|
||||||
if (p_button==1) {
|
if (p_button==1) {
|
||||||
swap=ti->get_prev();
|
swap=ti->get_prev();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue