]> git.tdb.fi Git - r2c2.git/commitdiff
Pass goto target with the correct type
authorMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 18:11:44 +0000 (21:11 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 18:11:44 +0000 (21:11 +0300)
source/engineer/routerpanel.cpp

index d0fea398b2812760d921a811f73a72919ec9e6c9..30857ceb7f9b0980de21ed0fce8e6fcc4b5493ef 100644 (file)
@@ -95,7 +95,7 @@ void RouterPanel::button_press(int x, int y, unsigned btn)
                goto_highlight = 0;
 
                if(goto_target && btn==1)
-                       train.ai_message(TrainAI::Message("set-destination", goto_target));
+                       train.ai_message(TrainAI::Message("set-destination", static_cast<const TrackChain *>(goto_target)));
        }
 }