1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix potential crash because a bad environment is captured

This commit is contained in:
Mathieu Schroeter 2018-08-08 23:48:34 +02:00
parent ad91d25fb8
commit 8bae6f1ad7

View File

@ -2973,7 +2973,7 @@ CEvent::EventButtons (const SDL_Event & event, Point pos)
if (m_phase == EV_PHASE_PLAY)
{
const static auto progress = [&](CJauge & prog, const char * text) -> bool {
auto progress = [&](CJauge & prog, const char * text) -> bool {
if (prog.GetHide ())
return false;