summaryrefslogtreecommitdiff
path: root/src/story.cpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-06-09 13:13:47 +0000
committerzuu <zuu@openttd.org>2013-06-09 13:13:47 +0000
commit8980cb427dd4f385e050f1e9075b345d798ae25c (patch)
treec93bd138cc0696792f6830878d085ced932a5288 /src/story.cpp
parentf373d29d62500ba0d33a707c9b0e03f97465b554 (diff)
downloadopenttd-8980cb427dd4f385e050f1e9075b345d798ae25c.tar.xz
(svn r25369) -Add: allow opening a story window specific to a company
Diffstat (limited to 'src/story.cpp')
-rw-r--r--src/story.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/story.cpp b/src/story.cpp
index 74cdd1d5c..4e0492376 100644
--- a/src/story.cpp
+++ b/src/story.cpp
@@ -264,7 +264,7 @@ CommandCost CmdShowStoryPage(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
if (flags & DC_EXEC) {
StoryPage *g = StoryPage::Get(p1);
- if ((g->company != INVALID_COMPANY && g->company == _local_company) || (g->company == INVALID_COMPANY && Company::IsValidID(_local_company))) ShowStoryBook(p1);
+ if ((g->company != INVALID_COMPANY && g->company == _local_company) || (g->company == INVALID_COMPANY && Company::IsValidID(_local_company))) ShowStoryBook(_local_company, p1);
}
return CommandCost();