aboutsummaryrefslogtreecommitdiff
path: root/extension/src/LoadGameCompatibility.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-25 01:17:53 +0200
committer Hop311 <hop3114@gmail.com>2023-05-25 01:17:53 +0200
commitb493547fb8c77918306fe56b74b704284cf54931 (patch)
tree6525f869dccdbeb61ed82d6a42afeb625680a885 /extension/src/LoadGameCompatibility.cpp
parent0a1a50cde54fee469bc0069978cd27a2bd1a2fb0 (diff)
Import fix + ProvinceOverviewPanel close fix
Diffstat (limited to 'extension/src/LoadGameCompatibility.cpp')
-rw-r--r--extension/src/LoadGameCompatibility.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/extension/src/LoadGameCompatibility.cpp b/extension/src/LoadGameCompatibility.cpp
index 96c165b..ddde5b8 100644
--- a/extension/src/LoadGameCompatibility.cpp
+++ b/extension/src/LoadGameCompatibility.cpp
@@ -88,9 +88,8 @@ Error GameSingleton::_load_terrain_variants_compatibility_mode(String const& ter
}
// Load the terrain texture sheet and prepare to slice it up
- Ref<Image> terrain_sheet;
- terrain_sheet.instantiate();
- if (terrain_sheet->load(terrain_texturesheet_path) != OK) {
+ Ref<Image> terrain_sheet = load_godot_image(terrain_texturesheet_path);
+ if (terrain_sheet.is_null()) {
UtilityFunctions::push_error("Failed to load terrain texture sheet: ", terrain_texturesheet_path);
return FAILED;
}