mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Fix gcc warning type may be used uninitialized
This commit is contained in:
parent
3bc866b623
commit
feb4a97ad7
1 changed files with 3 additions and 0 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue