Unload functions clear object to 0 so they would not be ready in Is*Ready.
This commit is contained in:
@@ -448,6 +448,7 @@ int ltextUnloadFont( lua_State* L ) {
|
||||
Font* font = uluaGetFont( L, 1 );
|
||||
|
||||
UnloadFont( *font );
|
||||
memset( font, 0, sizeof( Font ) );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user