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() {
217217 return ERR (ret);
218218}
219219
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>());
221223 if (height > currency_texture_big->get_height ()) {
222224 return currency_texture_big;
223225 } else if (height > currency_texture_medium->get_height ()) {
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace OpenVic {
8787 godot::Error preload_textures ();
8888
8989 /* 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 ;
9191 };
9292}
9393
You can’t perform that action at this time.
0 commit comments