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:
parent
ad91d25fb8
commit
8bae6f1ad7
@ -2973,7 +2973,7 @@ CEvent::EventButtons (const SDL_Event & event, Point pos)
|
|||||||
|
|
||||||
if (m_phase == EV_PHASE_PLAY)
|
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 ())
|
if (prog.GetHide ())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user