X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fwatchbsp.cpp;h=9754831701be404ed3dbbaa139cc326a644c6958;hb=76eb10a91476f04881e45560977a403cce8efcd6;hp=bb65e57337b331c5161a7f894e9c00111481899b;hpb=51a70e4a2854dd00a8d48661b2dbf98b6168872f;p=xonotic%2Fnetradiant.git diff --git a/radiant/watchbsp.cpp b/radiant/watchbsp.cpp index bb65e573..97548317 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; } }