House placing: Fix uninitialised variable.

This commit is contained in:
Jonathan G Rennison
2015-08-16 17:05:49 +01:00
parent 3ec3842ad4
commit 3e8611fca1

View File

@@ -1314,7 +1314,7 @@ public:
/* list house sets */ /* list house sets */
this->house_sets.Clear(); this->house_sets.Clear();
const GRFFile *last_set; const GRFFile *last_set = NULL;
for (uint i = 0; i < this->Length(); i++) { for (uint i = 0; i < this->Length(); i++) {
const HouseSpec *hs = HouseSpec::Get((*this)[i]); const HouseSpec *hs = HouseSpec::Get((*this)[i]);
/* add house set */ /* add house set */