diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-05-26 00:23:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 00:23:57 +0200 |
commit | ba3e974f30b8a2e7611b753ddc274dec8ff28283 (patch) | |
tree | 31d37e00cf6c010180fb3212b45ac5f70728cc8f /extension/src/LoadGameCompatibility.cpp | |
parent | 0a1a50cde54fee469bc0069978cd27a2bd1a2fb0 (diff) | |
parent | 9843807154aa70324c84692ce9d3b54414e2b5e0 (diff) |
Merge pull request #125 from OpenVicProject/import-fix
Diffstat (limited to 'extension/src/LoadGameCompatibility.cpp')
-rw-r--r-- | extension/src/LoadGameCompatibility.cpp | 5 |
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; } |