X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fwatchbsp.cpp;h=4769bc5d2d193fd9d3606f7a3ba4314dbe4463ac;hb=b8c3c38b6593cf013c8591d142854a842c79b1a2;hp=bbae3fab77af86854c191e8d4656fd249961213e;hpb=01a950c3de3ef7f7da23360f925404e2bd385d5d;p=xonotic%2Fnetradiant.git diff --git a/radiant/watchbsp.cpp b/radiant/watchbsp.cpp index bbae3fab..4769bc5d 100644 --- a/radiant/watchbsp.cpp +++ b/radiant/watchbsp.cpp @@ -469,7 +469,7 @@ static xmlSAXHandler saxParser = { // ------------------------------------------------------------------------------------------------ -guint s_routine_id; +guint s_routine_id = 0; static gint watchbsp_routine( gpointer data ){ reinterpret_cast( data )->RoutineProcessing(); return TRUE; @@ -489,8 +489,9 @@ void CWatchBSP::Reset(){ m_xmlInputBuffer = NULL; } m_eState = EIdle; - if ( s_routine_id ) { + if ( s_routine_id != 0 ) { g_source_remove( s_routine_id ); + s_routine_id = 0; } }