summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-04-24 15:19:57 +0200
committerGitHub <noreply@github.com>2021-04-24 15:19:57 +0200
commit888389c28d5f3ad06154e4d2e36de568b6f7966e (patch)
treeb4b342d27ef45202fed571440846e5581a143edf /src/music
parentd0e40ab31487cdf59c2fb638bcf553f166f8faf1 (diff)
downloadopenttd-888389c28d5f3ad06154e4d2e36de568b6f7966e.tar.xz
Codechange: Use std::string in console commands/aliases registration, and std::map instead our sorted linked list (#9057)
* Codechange: Use std::string in console commands and aliases registration * Codechange: Use std::map to register console commands * Codechange: Use std::map to register console aliases * Cleanup: Remove now unused function
Diffstat (limited to 'src/music')
-rw-r--r--src/music/midifile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/midifile.cpp b/src/music/midifile.cpp
index 4bdd3e4e3..dcd2cefd8 100644
--- a/src/music/midifile.cpp
+++ b/src/music/midifile.cpp
@@ -1142,7 +1142,7 @@ static void RegisterConsoleMidiCommands()
{
static bool registered = false;
if (!registered) {
- IConsoleCmdRegister("dumpsmf", CmdDumpSMF);
+ IConsole::CmdRegister("dumpsmf", CmdDumpSMF);
registered = true;
}
}