Fix crash with disabled CSM and Respawn menu (#111)

This commit is contained in:
sfan5 2018-04-19 13:00:45 +02:00 committed by MoNTE48
parent 7a67b65309
commit be0532f240

View File

@ -4805,7 +4805,7 @@ void Game::showDeathScreen()
/* Note: FormspecFormSource and LocalFormspecHandler
* are deleted by guiFormSpecMenu */
FormspecFormSource *fs_src = new FormspecFormSource(formspec);
LocalFormspecHandler *txt_dst = new LocalFormspecHandler("MT_DEATH_SCREEN");
LocalFormspecHandler *txt_dst = new LocalFormspecHandler("MT_DEATH_SCREEN", client);
create_formspec_menu(&current_formspec, client, device, &input->joystick, fs_src, txt_dst);
}