瀏覽代碼

fix clang6 assignment error

thfrwn 7 年之前
父節點
當前提交
f48ff4dc64
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scene/gui/rich_text_label.cpp

+ 2 - 2
scene/gui/rich_text_label.cpp

@@ -867,9 +867,9 @@ void RichTextLabel::_gui_input(Ref<InputEvent> p_event) {
 							// Erase previous selection.
 							// Erase previous selection.
 							if (selection.active) {
 							if (selection.active) {
 								selection.from = NULL;
 								selection.from = NULL;
-								selection.from_char = NULL;
+								selection.from_char = '\0';
 								selection.to = NULL;
 								selection.to = NULL;
-								selection.to_char = NULL;
+								selection.to_char = '\0';
 								selection.active = false;
 								selection.active = false;
 
 
 								update();
 								update();