mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
preventing racing condition
This commit is contained in:
parent
29a8456ebd
commit
647a637528
1 changed files with 3 additions and 2 deletions
|
@ -83,10 +83,11 @@ function listLoadedTextures()
|
|||
return loadedTextures
|
||||
end
|
||||
|
||||
airutils.all_game_textures = listLoadedTextures()
|
||||
|
||||
-- Function to check if a texture is in the list of loaded textures
|
||||
function airutils.isTextureLoaded(textureToFind)
|
||||
if not airutils.all_game_textures then
|
||||
airutils.all_game_textures = listLoadedTextures()
|
||||
end
|
||||
local textures = airutils.all_game_textures
|
||||
|
||||
for _, texture in pairs(textures) do
|
||||
|
|
Loading…
Add table
Reference in a new issue