diff options
author | Josiah <josiah_vanderzee@mediacombb.net> | 2020-10-21 09:27:39 -0500 |
---|---|---|
committer | Josiah <josiah_vanderzee@mediacombb.net> | 2020-10-21 09:27:39 -0500 |
commit | 5862410083da5da02a8bc29a76e7bb1f4977e331 (patch) | |
tree | fd687a4b7d5659b36a0cd0f7b99fc08b857e240b /src | |
parent | b211e90ffcabefc3c75cf00ee053970951f01488 (diff) | |
download | dragonfireclient-5862410083da5da02a8bc29a76e7bb1f4977e331.tar.xz |
Add missing return.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/cheatMenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp index 9225414a2..d5e93038c 100644 --- a/src/gui/cheatMenu.cpp +++ b/src/gui/cheatMenu.cpp @@ -84,10 +84,13 @@ void CheatMenu::draw(video::IVideoDriver *driver, bool show_debug) ClientScripting *script{ getScript() }; if (!script || !script->m_cheats_loaded) + return; + // Draw menu header if debug info is not being drawn. if (!show_debug) drawEntry(driver, "Dragonfireclient", 0, 0, false, false, CHEAT_MENU_ENTRY_TYPE_HEAD); + int category_count = 0; for (const auto &menu_item : m_cheat_categories) { bool is_selected = category_count == m_selected_category; |