Unload functions clear object to 0 so they would not be ready in Is*Ready.

This commit is contained in:
jussi
2024-05-29 22:44:36 +03:00
parent cd8989376e
commit f3dbe7d24b
6 changed files with 17 additions and 0 deletions

View File

@@ -448,6 +448,7 @@ int ltextUnloadFont( lua_State* L ) {
Font* font = uluaGetFont( L, 1 );
UnloadFont( *font );
memset( font, 0, sizeof( Font ) );
return 0;
}