Skip to content

Commit 4103173

Browse files
committed
Allow building of unowned labels on everything
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11734 8aca7d54-2c30-db11-9de9-000461428c89
1 parent 07fb135 commit 4103173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simutrans/tool/simtool.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ const char *tool_marker_t::work( player_t *player, koord3d pos )
15911591
if (gr) {
15921592
if(!gr->get_text()) {
15931593
const obj_t* thing = gr->obj_bei(0);
1594-
if(thing == NULL || thing->get_owner() == player || (player_t::check_owner(thing->get_owner(), player) && (thing->get_typ() != obj_t::gebaeude))) {
1594+
if(thing == NULL || player == NULL || thing->get_owner() == player || (player_t::check_owner(thing->get_owner(), player) && thing->get_typ() != obj_t::gebaeude)) {
15951595
gr->obj_add(new label_t(gr->get_pos(), player, default_param ? default_param : "\0"));
15961596
if (can_use_gui()) {
15971597
gr->find<label_t>()->show_info();

0 commit comments

Comments
 (0)