summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-23 18:47:04 +0000
committertron <tron@openttd.org>2005-08-23 18:47:04 +0000
commitb45aeb5c365f62fd04d6843efecbe3dc521d8cbb (patch)
tree87cff4a5f0201aacd0256ce38375fbde200eef92 /disaster_cmd.c
parent9d9ee2fe5668e631fa36b181530285157badb7fa (diff)
downloadopenttd-b45aeb5c365f62fd04d6843efecbe3dc521d8cbb.tar.xz
(svn r2886) Rename the "owner" attribute to "m1", because when it stores an owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing.
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index 1cf1d93f6..7b3fae9cc 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -337,7 +337,7 @@ static void DestructIndustry(Industry *i)
for (tile = 0; tile != MapSize(); tile++) {
if (IsTileType(tile, MP_INDUSTRY) && _m[tile].m2 == i->index) {
- _m[tile].owner = 0;
+ _m[tile].m1 = 0;
MarkTileDirtyByTile(tile);
}
}