File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
extension/src/openvic-extension/singletons Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,9 @@ Error AssetManager::preload_textures() {
217
217
return ERR (ret);
218
218
}
219
219
220
- Ref<GFXSpriteTexture> const & AssetManager::get_currency_texture (real_t height) const {
220
+ Ref<GFXSpriteTexture> AssetManager::get_currency_texture (real_t height) const {
221
+ ERR_FAIL_NULL_V (currency_texture_big, Ref<GFXSpriteTexture>());
222
+ ERR_FAIL_NULL_V (currency_texture_medium, Ref<GFXSpriteTexture>());
221
223
if (height > currency_texture_big->get_height ()) {
222
224
return currency_texture_big;
223
225
} else if (height > currency_texture_medium->get_height ()) {
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace OpenVic {
87
87
godot::Error preload_textures ();
88
88
89
89
/* Get the largest currency texture with height less than the specified font height. */
90
- godot::Ref<GFXSpriteTexture> const & get_currency_texture (real_t height) const ;
90
+ godot::Ref<GFXSpriteTexture> get_currency_texture (real_t height) const ;
91
91
};
92
92
}
93
93
You can’t perform that action at this time.
0 commit comments