From fef21ccc756d34ceeb5672621340bd7e964f966d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 30 Mar 2014 21:11:44 +0300 Subject: [PATCH] Pass goto target with the correct type --- source/engineer/routerpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/engineer/routerpanel.cpp b/source/engineer/routerpanel.cpp index d0fea39..30857ce 100644 --- a/source/engineer/routerpanel.cpp +++ b/source/engineer/routerpanel.cpp @@ -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(goto_target))); } } -- 2.43.0