Browse Source

Merge pull request #18466 from marcelofg55/use64_fix

Fix use64 used without being initialized
Gilles Roudière 7 years ago
parent
commit
b22f048700
2 changed files with 1 additions and 1 deletions
  1. 1 0
      editor/editor_export.cpp
  2. 0 1
      editor/editor_export.h

+ 1 - 0
editor/editor_export.cpp

@@ -1262,6 +1262,7 @@ bool EditorExportPlatformPC::can_export(const Ref<EditorExportPreset> &p_preset,
 
 	String err;
 	bool valid = true;
+	bool use64 = p_preset->get("binary_format/64_bits");
 
 	if (use64 && (!exists_export_template(debug_file_64, &err) || !exists_export_template(release_file_64, &err))) {
 		valid = false;

+ 0 - 1
editor/editor_export.h

@@ -373,7 +373,6 @@ class EditorExportPlatformPC : public EditorExportPlatform {
 
 	Set<String> extra_features;
 
-	bool use64;
 	int chmod_flags;
 
 public: