Fix const correctness

develop
Anuradha Dissanayake 2012-12-04 10:30:49 +13:00
parent 6bc6f3e555
commit 745b347b5b
1 changed files with 3 additions and 3 deletions

@ -137,7 +137,7 @@ static inline MaterialDescriptor &get_last_used_material()
return last_used_material[ui_build_selector->building_subtype];
}
static void set_last_used_material(MaterialDescriptor &matetial)
static void set_last_used_material(const MaterialDescriptor &matetial)
{
last_used_material[ui_build_selector->building_subtype] = matetial;
}
@ -150,7 +150,7 @@ static MaterialDescriptor &get_last_moved_material()
return last_moved_material[ui_build_selector->building_subtype];
}
static void set_last_moved_material(MaterialDescriptor &matetial)
static void set_last_moved_material(const MaterialDescriptor &matetial)
{
last_moved_material[ui_build_selector->building_subtype] = matetial;
}
@ -402,4 +402,4 @@ DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <Plug
//Ignore tracks, DF already returns to track menu
return CR_OK;
}
}