From: Mikko Rasa Date: Sun, 30 Mar 2014 18:11:44 +0000 (+0300) Subject: Pass goto target with the correct type X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fef21ccc756d34ceeb5672621340bd7e964f966d;p=r2c2.git Pass goto target with the correct type --- 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))); } }