Skip to content

Commit 9564c3d

Browse files
authored
Merge pull request #92735 from pixbyte/master
Fix undo not updating spawn checkbox in replication editor
2 parents 4359c28 + aebcd69 commit 9564c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/multiplayer/editor/replication_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ void ReplicationEditor::_tree_item_edited() {
430430
undo_redo->add_do_method(config.ptr(), "property_set_spawn", prop, value);
431431
undo_redo->add_undo_method(config.ptr(), "property_set_spawn", prop, !value);
432432
undo_redo->add_do_method(this, "_update_value", prop, column, value ? 1 : 0);
433-
undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 1 : 0);
433+
undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 0 : 1);
434434
undo_redo->commit_action();
435435
} else if (column == 2) {
436436
undo_redo->create_action(TTR("Set sync property"));

0 commit comments

Comments
 (0)