Mercurial > hg > openttd
changeset 20578:67c36d790e08 draft
(svn r25519) -Fix [FS#5614] (r25342): Select page to update by its id and not the page id
author | zuu <zuu@openttd.org> |
---|---|
date | Sat, 29 Jun 2013 14:54:07 +0000 |
parents | eb4d5a62ef86 |
children | b2305b950203 |
files | src/script/api/script_story_page.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/script/api/script_story_page.cpp +++ b/src/script/api/script_story_page.cpp @@ -92,7 +92,7 @@ EnforcePrecondition(false, type != ::SPET_GOAL || !(p->company == INVALID_COMPANY && Goal::Get(reference)->company != INVALID_COMPANY)); return ScriptObject::DoCommand(type == ::SPET_LOCATION ? reference : 0, - pe->page, + story_page_element_id, type == ::SPET_GOAL ? reference : 0, CMD_UPDATE_STORY_PAGE_ELEMENT, type == ::SPET_TEXT || type == ::SPET_LOCATION ? text->GetEncodedText() : NULL,