summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Stars45/MCIWave.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/MCIWave.cpp b/Stars45/MCIWave.cpp
index 25bfdad..1424b7d 100644
--- a/Stars45/MCIWave.cpp
+++ b/Stars45/MCIWave.cpp
@@ -38,6 +38,7 @@
#include "MemDebug.h"
#include "Types.h"
+#include "Game.h"
// +----------------------------------------------------------------------+
@@ -50,11 +51,10 @@ static char ret_str[MCI_MAX_STR];
static char err_str[MCI_MAX_STR];
static MCIERROR mci_err;
static MMRESULT wav_err;
-extern HWND hwndApp;
static int mci_send_string(const char* cmd_str)
{
- mci_err = mciSendString(cmd_str, ret_str, sizeof(ret_str), hwndApp);
+ mci_err = mciSendString(cmd_str, ret_str, sizeof(ret_str), Game::GetHWND());
if (mci_err) {
if (mciGetErrorString(mci_err, err_str, sizeof(err_str)))
Print("Error (%s): '%s'\n", cmd_str, err_str);