Skip to content

Commit f47270b

Browse files
committed
Fix help table reference
1 parent 5250fdc commit f47270b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deus-console.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ typedef std::function<std::string()> TDeusConsoleFuncToString;
7575
typedef std::function<void*()> TDeusConsoleFuncRead;
7676
typedef std::function<void(void*)> TDeusConsoleFuncVoid;
7777
typedef std::function<void(char*)> TDeusConsoleFuncWriteChar;
78-
typedef std::unordered_map<const char*, const char*> DeusConsoleHelpTable;
78+
typedef std::unordered_map<std::string, std::string> DeusConsoleHelpTable;
7979

8080
// Wrapper for console variables and their flags/methods
8181
struct DeusConsoleVariable {
@@ -196,7 +196,7 @@ class IDeusConsoleManager {
196196
}
197197

198198
// Returns a reference to the help table itself, useful for iterating over potential cmds
199-
std::unordered_map<std::string, std::string>& getHelpTable() {
199+
DeusConsoleHelpTable& getHelpTable() {
200200
return this->helpTable;
201201
}
202202

0 commit comments

Comments
 (0)