- fixed some bugs reported by coverity

This commit is contained in:
SoftCoder 2014-01-17 09:53:19 -08:00
parent 0de4f33923
commit b0fc9597e3
2 changed files with 2 additions and 1 deletions

View File

@ -4638,7 +4638,7 @@ int glestMain(int argc, char** argv) {
if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_LUA_DEBUG]) == true) { if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_LUA_DEBUG]) == true) {
printf("Forcing LUA debugging enabled!\n"); printf("Forcing LUA debugging enabled!\n");
config.setBool("DebugLUA","true", true); config.setBool("DebugLUA",true, true);
} }
// Setup debug logging etc // Setup debug logging etc

View File

@ -129,6 +129,7 @@ UnitType::UnitType() : ProducibleType() {
armor=0; armor=0;
sight=0; sight=0;
size=0; size=0;
renderSize=0;
height=0; height=0;
addItemToVault(&(this->maxHp),this->maxHp); addItemToVault(&(this->maxHp),this->maxHp);