]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/simplecontroller.cpp
Replace various map lookups with functions from maputils.h
[r2c2.git] / source / libr2c2 / simplecontroller.cpp
index b53b29163622c107be2cf0606c92ab790aa6ffdb..d88ade005929309e38d15f04714e7fa08278cad0 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/core/except.h>
+#include <msp/core/maputils.h>
 #include <msp/time/units.h>
 #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