Hallo Thomas,
schau dir mal die Hilfe zu "LOCAL" an:
Notice that a LOCAL variable is not initialized. It will contain a value that will depend on the value of the FRAME data. So you can not assume the variable is 0. If you like it to be 0, you need to assign it.
Das war schon immer so. Da man der Variable meistens einen Wert zuweist, fällt das nicht auf.