diff --git a/code/lab/lab.cpp b/code/lab/lab.cpp index 20b040158a..b1b659b6e4 100644 --- a/code/lab/lab.cpp +++ b/code/lab/lab.cpp @@ -205,8 +205,6 @@ void reset_view() void labviewer_change_model(char* model_fname, int lod = 0, int sel_index = -1) { bool change_model = true; - int l; - ship_info* sip = nullptr; anim_timer_start = timer_get_milliseconds(); @@ -243,12 +241,6 @@ void labviewer_change_model(char* model_fname, int lod = 0, int sel_index = -1) model_page_in_textures(Lab_model_num, sel_index); } } - - // do the same for weapon models if necessary - if (Lab_mode == LAB_MODE_SHIP) { - sip = &Ship_info[Lab_selected_index]; - l = 0; - } } else { // clear out the model filename memset(Lab_model_filename, 0, sizeof(Lab_model_filename));