]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainproperties.cpp
Miscellaneous compilation fixes
[r2c2.git] / source / engineer / trainproperties.cpp
index 867e0a8d32c1e49c02f6cf1b61e59e9936bdf40e..360923514b40297dd46440d1ea0864cccd064bf1 100644 (file)
@@ -87,7 +87,7 @@ TrainProperties::TrainProperties(Engineer &e, Train *t):
 
        if(train)
        {
-               ent_addr->set_text(lexical_cast(train->get_address()));
+               ent_addr->set_text(lexical_cast<string>(train->get_address()));
                ent_name->set_text(train->get_name());
                drp_priority->set_selected_index(train->get_priority()+2);
 
@@ -171,5 +171,5 @@ const VehicleType &TrainProperties::get_vehicle_type(unsigned n, bool loco)
                ++i;
        }
 
-       throw InvalidParameterValue("Vehicle type index out of range");
+       throw out_of_range("TrainProperties::get_vehicle_type");
 }