]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/watchbsp.cpp
Radiant:
[xonotic/netradiant.git] / radiant / watchbsp.cpp
index a598ff51c3a17205f676bd60209fed5a0ca1d87e..7934825770af0c2e0928304bab1ffa948d7818bf 100644 (file)
@@ -467,7 +467,7 @@ static xmlSAXHandler saxParser = {
 // ------------------------------------------------------------------------------------------------
 
 
-guint s_routine_id;
+guint s_routine_id = 0;
 static gint watchbsp_routine( gpointer data ){
        reinterpret_cast<CWatchBSP*>( data )->RoutineProcessing();
        return TRUE;
@@ -487,8 +487,9 @@ void CWatchBSP::Reset(){
                m_xmlInputBuffer = NULL;
        }
        m_eState = EIdle;
-       if ( s_routine_id ) {
+       if ( s_routine_id != 0 ) {
                gtk_timeout_remove( s_routine_id );
+               s_routine_id = 0;
        }
 }