update color at picking and cleanup code from some warnings

This commit is contained in:
2019-03-11 15:35:59 +01:00
parent 373e7ad0e9
commit fda399f7dd
16 changed files with 56 additions and 63 deletions

View File

@@ -726,7 +726,7 @@ int App::res_from_index(int i)
int App::res_to_index(int res)
{
return std::distance(res_map.begin(), std::find(res_map.begin(), res_map.end(), res));
return (int)std::distance(res_map.begin(), std::find(res_map.begin(), res_map.end(), res));
}
std::string App::res_to_string(int res)