]> git.lizzy.rs Git - minetest.git/blobdiff - src/guiChatConsole.cpp
Remove no virtual dtor warnings, make MapgenParams contain actual NoiseParams
[minetest.git] / src / guiChatConsole.cpp
index f522af01f966481ac3e4158b680d48c2fce677a1..3dfd0090a6c6b224898b06ed678ec41269f33eb8 100644 (file)
@@ -121,6 +121,9 @@ GUIChatConsole::GUIChatConsole(
 
 GUIChatConsole::~GUIChatConsole()
 {
+#if USE_FREETYPE
+       m_font->drop();
+#endif
 }
 
 void GUIChatConsole::openConsole(f32 height)
@@ -535,7 +538,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
                {
                        // Tab or Shift-Tab pressed
                        // Nick completion
-                       core::list<std::wstring> names = m_client->getConnectedPlayerNames();
+                       std::list<std::string> names = m_client->getConnectedPlayerNames();
                        bool backwards = event.KeyInput.Shift;
                        m_chat_backend->getPrompt().nickCompletion(names, backwards);
                        return true;