From 4735bd5cf011ac676b9b8c6d7f4ffda9a6631cea Mon Sep 17 00:00:00 2001 From: iProgramInCpp Date: Mon, 31 Jul 2023 10:18:47 +0300 Subject: [PATCH] * Fix a bug in NinecraftApp where the incorrect string will be printed in place of the level renderer's stats. --- source/App/NinecraftApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/App/NinecraftApp.cpp b/source/App/NinecraftApp.cpp index beb423a..0e8d2a1 100644 --- a/source/App/NinecraftApp.cpp +++ b/source/App/NinecraftApp.cpp @@ -107,7 +107,7 @@ void NinecraftApp::updateStats() { Vec3 &pos = m_pLocalPlayer->m_pos; printf("%d fps\t%3d chunk updates. (%.2f, %.2f, %.2f)\n", m_fps, Chunk::updates, pos.x, pos.y, pos.z); - printf("%s", m_pLevelRenderer->gatherStats1()); + printf("%s", m_pLevelRenderer->gatherStats1().c_str()); Chunk::updates = 0; } else