From c3685046465dacdde6ae8e060b5465a9adf249c2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 11 Jan 2016 11:39:25 +0100 Subject: WAGE: Added safeguards to avoid future mistakes --- engines/wage/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index fab8d04ebb..ade2b79935 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -87,6 +87,9 @@ Menu::Menu(Gui *gui) : _gui(gui) { MenuItem *commands = new MenuItem("Commands"); _items.push_back(commands); + assert(_gui->_engine); + assert(_gui->_engine->_world); + if (!_gui->_engine->_world->_weaponMenuDisabled) { MenuItem *weapons = new MenuItem("Weapons"); _items.push_back(weapons); -- cgit v1.2.3