From d6db91738ceee5cce9e7b7efc32bec89a83fa790 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Wed, 24 May 2023 09:14:41 +0100 Subject: Date fix + string fix + Logger queue --- extension/src/LoadGameCompatibility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extension/src/LoadGameCompatibility.cpp') diff --git a/extension/src/LoadGameCompatibility.cpp b/extension/src/LoadGameCompatibility.cpp index 29b773e..96c165b 100644 --- a/extension/src/LoadGameCompatibility.cpp +++ b/extension/src/LoadGameCompatibility.cpp @@ -76,7 +76,7 @@ Error GameSingleton::_load_province_identifier_file_compatibility_mode(String co Error GameSingleton::_load_terrain_variants_compatibility_mode(String const& terrain_image_path, String const& terrain_texturesheet_path) { // Read BMP's palette to determine terrain variant colours which texture they're associated with BMP bmp; - if (bmp.open(godot_to_c_string(terrain_image_path)) != SUCCESS || bmp.read_header() != SUCCESS || bmp.read_palette() != SUCCESS) { + if (bmp.open(godot_to_std_string(terrain_image_path).c_str()) != SUCCESS || bmp.read_header() != SUCCESS || bmp.read_palette() != SUCCESS) { UtilityFunctions::push_error("Failed to read BMP palette from compatibility mode terrain image: ", terrain_image_path); return FAILED; } -- cgit v1.2.3-56-ga3b1