X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibr2c2%2Fsimplecontroller.cpp;h=d88ade005929309e38d15f04714e7fa08278cad0;hb=4236c30c0a7a48854e9634e9ad7d8d6e0fd243a3;hp=b53b29163622c107be2cf0606c92ab790aa6ffdb;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/libr2c2/simplecontroller.cpp b/source/libr2c2/simplecontroller.cpp index b53b291..d88ade0 100644 --- a/source/libr2c2/simplecontroller.cpp +++ b/source/libr2c2/simplecontroller.cpp @@ -1,4 +1,5 @@ #include +#include #include #include "simplecontroller.h" @@ -49,7 +50,7 @@ const Controller::Control &SimpleController::get_control(const string &name) con else if(name==reverse.name) return reverse; else - throw KeyError("Unknown control", name); + throw key_error(name); } float SimpleController::get_braking_distance() const