mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 20:42:34 +02:00
- fixed some bugs reported by coverity
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user