summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-29 23:29:06 +0000
committerglx <glx@openttd.org>2007-10-29 23:29:06 +0000
commit3d150b623070d35db3cd9cb179118e207874b2e2 (patch)
tree6046645b9b68dded00d5d17f521b23ab307af06f /src/industry_gui.cpp
parent3722b834efb6969259ba22cc19b1651e7d40f6da (diff)
downloadopenttd-3d150b623070d35db3cd9cb179118e207874b2e2.tar.xz
(svn r11356) -Fix (r11305): funding industries in MP game was causing desync
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index ae317dff6..329b288eb 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -315,7 +315,7 @@ static void BuildDynamicIndustryWndProc(Window *w, WindowEvent *e)
_ignore_restrictions = false;
_generating_world = false;
} else {
- success = DoCommandP(e->we.place.tile, WP(w, fnd_d).select, 0, NULL, CMD_BUILD_INDUSTRY | CMD_MSG(STR_4830_CAN_T_CONSTRUCT_THIS_INDUSTRY));
+ success = DoCommandP(e->we.place.tile, WP(w, fnd_d).select, InteractiveRandomRange(indsp->num_table), NULL, CMD_BUILD_INDUSTRY | CMD_MSG(STR_4830_CAN_T_CONSTRUCT_THIS_INDUSTRY));
}
/* If an industry has been built, just reset the cursor and the system */