]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp
Fixed compilation with new TRAFF_TYPE.
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / tariff_helper.cpp
index 85abf8205a5e59822db40850c3b37d4de905be45..26b4e993b719067fae180f47b9c1d1792b1da204 100644 (file)
@@ -63,7 +63,7 @@ if ((it = structVal.find("passivecost")) != structVal.end())
 
 if ((it = structVal.find("traffType")) != structVal.end())
     {
-    data.tariffConf.traffType = xmlrpc_c::value_int(it->second);
+    data.tariffConf.traffType = static_cast<TARIFF::TRAFF_TYPE>(xmlrpc_c::value_int(it->second).cvalue());
     }
 
 if ((it = structVal.find("period")) != structVal.end())