initialize variable

This commit is contained in:
Enno Rehling 2017-02-16 19:38:09 +01:00
parent 20ff8981df
commit a5dfe12d48
1 changed files with 2 additions and 2 deletions

View File

@ -919,8 +919,8 @@ static void allocate_resource(unit * u, const resource_type * rtype, int want)
attrib *a = a_find(rtype->attribs, &at_resourcelimit); attrib *a = a_find(rtype->attribs, &at_resourcelimit);
resource_limit *rdata = (resource_limit *)a->data.v; resource_limit *rdata = (resource_limit *)a->data.v;
const resource_type *rring; const resource_type *rring;
int amount, skill, skill_mod; int amount, skill, skill_mod = 0;
double save_mod; double save_mod = 1.0;
/* momentan kann man keine ressourcen abbauen, wenn man daf<61>r /* momentan kann man keine ressourcen abbauen, wenn man daf<61>r
* Materialverbrauch hat: */ * Materialverbrauch hat: */