diff --git a/source/ps/CConsole.cpp b/source/ps/CConsole.cpp index 1b6bde69c1..1caaeb3da8 100644 --- a/source/ps/CConsole.cpp +++ b/source/ps/CConsole.cpp @@ -458,7 +458,7 @@ void CConsole::InsertChar(const int szChar, const wchar_t cooked ) } if(!bad) { - SetBuffer(m_deqBufHistory.at(iHistoryPos).c_str()); + SetBuffer(L"%ls", m_deqBufHistory.at(iHistoryPos).c_str()); return; } } diff --git a/source/ps/Interact.cpp b/source/ps/Interact.cpp index 547237ddcb..279a13f514 100644 --- a/source/ps/Interact.cpp +++ b/source/ps/Interact.cpp @@ -1042,7 +1042,7 @@ void CMouseoverEntities::RenderOverlays() glColor4f( 1.0f, 1.0f, 1.0f, it->fade ); glTranslatef( x, g_Renderer.GetHeight() - y, 0.0f ); glScalef( 1.0f, -1.0f, 1.0f ); - glwprintf( L"%d", it->entity->m_grouped ); + glwprintf( L"%ld", it->entity->m_grouped ); glDisable( GL_TEXTURE_2D ); glPopMatrix(); }