Fix gcc warning type may be used uninitialized

This commit is contained in:
Pan7 2017-02-24 14:33:49 +01:00
parent 3bc866b623
commit feb4a97ad7

View file

@ -602,6 +602,9 @@ static gint ci_add_target( GtkWidget *widget, gpointer data ){
else if ( gtk_toggle_button_get_active( (GtkToggleButton*)spline ) ) {
type = 2;
}
else {
break;
}
// Add the target
GetCurrentCam()->GetCam()->addTarget( str, static_cast<idCameraPosition::positionType>( type ) );