diff options
author | smatz <smatz@openttd.org> | 2009-01-03 16:06:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-03 16:06:58 +0000 |
commit | 254e19da91309da11416c69ae7899dc11e608df0 (patch) | |
tree | cfe8a97df4f219709152bb304eee65541e9ab8db /src/industry_cmd.cpp | |
parent | 21308de6cb2995912d67af4ae704a8870d90e156 (diff) | |
download | openttd-254e19da91309da11416c69ae7899dc11e608df0.tar.xz |
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 413a3aa81..d13cf5132 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -140,7 +140,7 @@ Industry::~Industry() /* Industry can also be destroyed when not fully initialized. * This means that we do not have to clear tiles either. */ if (this->width == 0) { - this->xy = 0; + this->xy = INVALID_TILE; return; } @@ -174,7 +174,7 @@ Industry::~Industry() DeleteSubsidyWithIndustry(this->index); DeleteWindowById(WC_INDUSTRY_VIEW, this->index); InvalidateWindowData(WC_INDUSTRY_DIRECTORY, 0, 0); - this->xy = 0; + this->xy = INVALID_TILE; } static void IndustryDrawSugarMine(const TileInfo *ti) |