diff --git a/sound/sound_library.h b/sound/sound_library.h index 5bddb5026..f2132c4cd 100644 --- a/sound/sound_library.h +++ b/sound/sound_library.h @@ -126,7 +126,7 @@ class SoundLibraryTemplate { #define ADD_SL_SOUND(NAME, BASE) \ void Say##NAME() { this->Play(BASE ".wav"); } \ /* t for "trampoline" */ \ - struct t##NAME { static void say() { getPtr->Say##NAME(); } } + struct t##NAME { static void say() { getPtr()->Say##NAME(); } } ADD_SL_SOUND(Red, "clrlst/clrlst01"); ADD_SL_SOUND(OrangeRed, "clrlst/clrlst02");