Sorry for this very simple looking problem, but I have no idea what causes it:

In a C++ project I have a loop in a loop in a loop and have to leave the inner two so I have a variable for a query. In the first iteration it works fine, but in the second the assign from dtime to abbruch does not work. In the Debugger dtime has correctly the value "1" and abbruch "0" but this stays after the assignment. Both are of type long.

```
for (sect = 0; sect <= sections; sect++)
{
    abbruch = 0;
    for(line = 0; line < maxlines ; line ++)
    {
        abbruch = dtime[sect][0];
        if(abbruch != 0)
        {
            break;
        }
        for (index = 0; index < 30; index ++)
        {
            if (complicated query)
            {
                dtime[sect][0] = DiffTime[maxlines * sect + line];
                break;
            }
        }
    }
}

```

I use VS2012 Ultimate. 
Has anyone an idear how this can happen ot how to solve it?