- fixed some bugs reported by coverity
This commit is contained in:
parent
0de4f33923
commit
b0fc9597e3
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue