summaryrefslogtreecommitdiffstats
path: root/src/game/client/sound
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/sound')
-rw-r--r--src/game/client/sound/sound.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/sound/sound.cc b/src/game/client/sound/sound.cc
index 7dfe562..11c9286 100644
--- a/src/game/client/sound/sound.cc
+++ b/src/game/client/sound/sound.cc
@@ -157,7 +157,7 @@ void sound::play_generic(resource_ptr<SoundEffect> sound, bool looping, float pi
void sound::play_entity(entt::entity entity, resource_ptr<SoundEffect> sound, bool looping, float pitch)
{
if(globals::dimension && globals::dimension->entities.valid(entity)) {
- if(auto emitter = globals::dimension->entities.try_get<entity::SoundEmitter>(entity)) {
+ if(auto emitter = globals::dimension->entities.try_get<SoundEmitter>(entity)) {
alSourceRewind(emitter->source);
emitter->sound = sound;