summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-30 02:08:18 +0000
committerbelugas <belugas@openttd.org>2007-05-30 02:08:18 +0000
commit425ea508543d3473f1759530154b08cf1e51bfc4 (patch)
treea711c93d07a7369596405f41e1ddda86c87af7bd /src/industry_cmd.cpp
parentf8491407d01175048629a88f7dbd000108a3ed1a (diff)
downloadopenttd-425ea508543d3473f1759530154b08cf1e51bfc4.tar.xz
(svn r9984) -Codechange: Remove an obsolete structure and a now meaningless enum, in favor of the "real thing"
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 2cf72a1fd..5077f4b96 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -108,12 +108,12 @@ const IndustrySpec *GetIndustrySpec(IndustryType thistype)
* This will ensure at once : proper access and
* not allowing modifications of it.
* @param gfx of industrytile (which is the index in _industry_specs)
- * @pre gfx < NUM_INDUSTRY_GFXES
+ * @pre gfx < INVALID_INDUSTRYTILE
* @return a pointer to the corresponding industrytile spec
**/
const IndustryTileSpec *GetIndustryTileSpec(IndustryGfx gfx)
{
- assert(gfx < NUM_INDUSTRY_GFXES);
+ assert(gfx < INVALID_INDUSTRYTILE);
return &_industry_tile_specs[gfx];
}