From b0fc9597e34d10d1dbcfc2b139a2e2c4c618b273 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Fri, 17 Jan 2014 09:53:19 -0800 Subject: [PATCH] - fixed some bugs reported by coverity --- source/glest_game/main/main.cpp | 2 +- source/glest_game/types/unit_type.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index a3d2aca1..a540037f 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -4638,7 +4638,7 @@ int glestMain(int argc, char** argv) { if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_LUA_DEBUG]) == true) { printf("Forcing LUA debugging enabled!\n"); - config.setBool("DebugLUA","true", true); + config.setBool("DebugLUA",true, true); } // Setup debug logging etc diff --git a/source/glest_game/types/unit_type.cpp b/source/glest_game/types/unit_type.cpp index f9aa117e..846a4a9e 100644 --- a/source/glest_game/types/unit_type.cpp +++ b/source/glest_game/types/unit_type.cpp @@ -129,6 +129,7 @@ UnitType::UnitType() : ProducibleType() { armor=0; sight=0; size=0; + renderSize=0; height=0; addItemToVault(&(this->maxHp),this->maxHp);