From 9e9ca5c4ab71026b788212e1da55da901e6aecb7 Mon Sep 17 00:00:00 2001 From: v1993 Date: Fri, 13 Sep 2019 13:10:55 +0300 Subject: [PATCH] Fix errors found by lgtm --- src/luautils.cpp | 2 +- src/sounds.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/luautils.cpp b/src/luautils.cpp index fc2998f..7de995d 100644 --- a/src/luautils.cpp +++ b/src/luautils.cpp @@ -655,7 +655,7 @@ LuaCuboLib::LuaCuboLib() { int LuaCuboLib::GLDEBUG(lua_State *state) { GLfloat v[4]; glGetMaterialfv(GL_FRONT,GL_AMBIENT,v); - Log::debug("Renderer", "Ambient: %s %s %s %s", v[0], v[1], v[2], v[3]); + Log::debug("Renderer", "Ambient: %e %e %e %e", v[0], v[1], v[2], v[3]); return 0; } diff --git a/src/sounds.cpp b/src/sounds.cpp index cb1a5e0..0e79301 100644 --- a/src/sounds.cpp +++ b/src/sounds.cpp @@ -253,7 +253,7 @@ int SoundServer::SetNumChannels(int nchan) { int oldsize=playchannels.size(); if (nchan