Merge pull request 'Réglage du problème de crash' (#40) from fix-sound-crash into main

Reviewed-on: #40
This commit is contained in:
CoCo_Sol 2023-10-29 20:34:05 +00:00 committed by Gitea
commit 7cc33baf13
No known key found for this signature in database

View file

@ -760,7 +760,7 @@ def start_game(
del channels[entity]
# Ajout des sons non gérés
for entity in sound_entities:
for entity in world.query(Sound):
if entity not in channels:
entity_sound = entity[Sound]
sound = assets.get_sound(entity_sound.name)