Skip to content

Commit 311c8f7

Browse files
committed
FIX: Fatal error message when building a city house that was copied using the pipette tool
tool_build_house received an improperly formatted default_param git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11886 8aca7d54-2c30-db11-9de9-000461428c89
1 parent d19b37c commit 311c8f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

simutrans/history.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
FIX: (poppo) last tool not show when too many tools to fit
5959
ADD: searchable comboboxes; for editing click twice
6060
CHG: Stops that are not connected to any other stops now have a blue status colour
61+
FIX: Fatal error message when building a city house that was copied using the pipette tool
6162

6263

6364
Release of 124.3.1 (r11671 on 5-Apr-2025):

src/simutrans/tool/simtool.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7246,7 +7246,7 @@ const char *tool_pipette_t::work(player_t *pl, koord3d pos)
72467246
static tool_build_house_t t = tool_build_house_t();
72477247
t.cursor = tool_t::general_tool[TOOL_BUILD_HOUSE]->cursor;
72487248
param_str.clear();
7249-
param_str.printf("%d,%s",
7249+
param_str.printf("0%d%s",
72507250
gb->get_tile()->get_layout(), /*rotation*/
72517251
gb->get_tile()->get_desc()->get_name());
72527252
t.set_default_param(param_str);

0 commit comments

Comments
 (0)