Code center > Bugs and fixes

DNA flow possible error

(1/1)

Numsgil:
I'm not 100% sure on this one, but I found a similar bug in the C++ source.

THe CurrentFlow variable wasn't being reset to CLEAR when a new bot began executing.  The possible result of this could be bots that inherit the flow control from the previous bot that was executed.

For Instance:

Bot 1:
start

Bot 2:
10 .up store

The rules should prevent bot 2 from executing that store.  Instead it's allowed because the CurrentFlow flag was still set to BODY.

EricL:
Nice catch.  This does indeed appear to be in 2.4X.  2.42.3 will have the fix.

Navigation

[0] Message Index

Go to full version