浏览代码

Merge pull request #22119 from char0xff/doc_config

Fix mistake in ConfigFile.xml
Rémi Verschelde 7 年之前
父节点
当前提交
7ffeabf6bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/ConfigFile.xml

+ 1 - 1
doc/classes/ConfigFile.xml

@@ -18,7 +18,7 @@
 		var err = config.load("user://settings.cfg")
 		if err == OK: # if not, something went wrong with the file loading
 		    # Look for the display/width pair, and default to 1024 if missing
-		    var screen_width = get_value("display", "width", 1024)
+		    var screen_width = config.get_value("display", "width", 1024)
 		    # Store a variable if and only if it hasn't been defined yet
 		    if not config.has_section_key("audio", "mute"):
 		        config.set_value("audio", "mute", false)