summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2014-02-06 18:50:25 +0000
committerzuu <zuu@openttd.org>2014-02-06 18:50:25 +0000
commit0c6f22b5c1633a5c502fdf8cb4facb1d4b3d4604 (patch)
tree381d0dfbac50954d0b5b42d1a214b3ab78c861e0 /src
parentcf96168f6f6cdbf65daa3e42bbe772ee13081d3b (diff)
downloadopenttd-0c6f22b5c1633a5c502fdf8cb4facb1d4b3d4604.tar.xz
(svn r26298) -Fix: [nogo] Invalid DoCommand return callback for method returning bool
Diffstat (limited to 'src')
-rw-r--r--src/script/api/script_story_page.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/api/script_story_page.cpp b/src/script/api/script_story_page.cpp
index 87ae0e3fc..c6d4582a5 100644
--- a/src/script/api/script_story_page.cpp
+++ b/src/script/api/script_story_page.cpp
@@ -95,8 +95,7 @@
story_page_element_id,
type == ::SPET_GOAL ? reference : 0,
CMD_UPDATE_STORY_PAGE_ELEMENT,
- type == ::SPET_TEXT || type == ::SPET_LOCATION ? text->GetEncodedText() : NULL,
- &ScriptInstance::DoCommandReturnStoryPageElementID);
+ type == ::SPET_TEXT || type == ::SPET_LOCATION ? text->GetEncodedText() : NULL);
}
/* static */ bool ScriptStoryPage::SetTitle(StoryPageID story_page_id, Text *title)