Mercurial > mm7
diff mm7_2.cpp @ 2423:1b6bf88f561b
fixing some memory access errors
author | Grumpy7 |
---|---|
date | Tue, 22 Jul 2014 23:07:24 +0200 |
parents | 0313c761d203 |
children | d922225a6081 94393b73d333 |
line wrap: on
line diff
--- a/mm7_2.cpp Wed Jul 23 01:18:24 2014 +0600 +++ b/mm7_2.cpp Tue Jul 22 23:07:24 2014 +0200 @@ -1422,6 +1422,8 @@ srand(GetTickCount()); + pEventTimer = Timer::Create(); + pEventTimer->Initialize(); window = OSWindow::Create(L"Might and MagicŪ Trilogy", game_width, game_height); pRenderer = Render::Create(); @@ -1459,8 +1461,6 @@ pKeyActionMap = new KeyboardActionMapping; - pEventTimer = Timer::Create(); - pEventTimer->Initialize(); // _CrtDumpMemoryLeaks(); OnTimer(1); GameUI_StatusBar_UpdateTimedString(1);