diff --git a/assethandler/assethandler.h b/assethandler/assethandler.h index 45a1aa0..b6e4470 100644 --- a/assethandler/assethandler.h +++ b/assethandler/assethandler.h @@ -257,6 +257,10 @@ class AssetHandler { private: AssetHandler() { + if (!TTF_WasInit()) { + TTF_Init(); + } + SDL_IOStream* rwops = SDL_IOFromConstMem(DroidSansMono_ttf, DroidSansMono_ttf_len); if (rwops == NULL) { // Handle error