Browse Source

[TextServer] Fix ICU data incorrectly marked as loaded even if file was not found.

Pāvels Nadtočajevs 6 months ago
parent
commit
14093fdacf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/text_server_adv/text_server_adv.cpp

+ 1 - 1
modules/text_server_adv/text_server_adv.cpp

@@ -458,13 +458,13 @@ bool TextServerAdvanced::_load_support_data(const String &p_filename) {
 			}
 			}
 
 
 			err = U_ZERO_ERROR;
 			err = U_ZERO_ERROR;
+			icu_data_loaded = true;
 		}
 		}
 
 
 		u_init(&err);
 		u_init(&err);
 		if (U_FAILURE(err)) {
 		if (U_FAILURE(err)) {
 			ERR_FAIL_V_MSG(false, u_errorName(err));
 			ERR_FAIL_V_MSG(false, u_errorName(err));
 		}
 		}
-		icu_data_loaded = true;
 	}
 	}
 #endif
 #endif
 	return true;
 	return true;