Avoid a crash in debug menu

This commit is contained in:
Deve 2018-06-06 22:19:14 +02:00
parent a39c934d2b
commit 6effdeced4

View File

@ -722,6 +722,7 @@ bool handleContextMenuAction(s32 cmd_id)
break;
case DEBUG_ADJUST_LIGHTS:
{
if (!world) return false;
// Some sliders use multipliers because the spinner widget
// only supports integers
DebugSliderDialog *dsd = new DebugSliderDialog();