diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 06fa0055d9..93ec5ec023 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -564,7 +564,7 @@ void wxWindowMGL::Init() wxWindowMGL::~wxWindowMGL() { // Send destroy event - wxWindowDestroyEvent destroyEvent(this); + wxWindowDestroyEvent destroyEvent((wxWindow*)this); destroyEvent.SetId(GetId()); GetEventHandler()->ProcessEvent(destroyEvent);