summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/cheat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/cheat.cpp')
-rw-r--r--src/frontend/mame/cheat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/mame/cheat.cpp b/src/frontend/mame/cheat.cpp
index 125a6634dbb..61cda1cf475 100644
--- a/src/frontend/mame/cheat.cpp
+++ b/src/frontend/mame/cheat.cpp
@@ -79,6 +79,7 @@
#include "ui/ui.h"
#include "ui/menu.h"
+#include "corestr.h"
#include "emuopts.h"
#include <cstring>
@@ -951,7 +952,7 @@ void cheat_entry::menu_text(std::string &description, std::string &state, uint32
// some cheat entries are just text for display
if (!description.empty())
{
- strtrimspace(description);
+ description = strtrimspace(description);
if (description.empty())
description = MENU_SEPARATOR_ITEM;
}