Fix a bug of BGM loop in Windows

The info structure must be initialized with the SDL version before
calling SDL_GetWindowWMInfo.
This commit is contained in:
kichikuou
2020-05-16 20:40:38 +09:00
parent dc3a031819
commit c8b3cd182c
+1
View File
@@ -165,6 +165,7 @@ MAKO::MAKO(NACT* parent, const char* playlist) :
}
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if (!SDL_GetWindowWMInfo(g_window, &info)) {
WARNING("SDL_GetWindowWMInfo failed: %s", SDL_GetError());
} else {