Savegames and boolean variables
Posted: 06 Apr 2012, 07:45
Just noticed a case when the following codeprints before saving/loading, but prints
after saving/loading
(that is, the variable isn't equal to false, but it prints false when debugging it)
Code: Select all
debug(me,someBooleanVariable);
if (someBooleanVariable==false) {
debug(me,"x",someBooleanVariable);
}
if (someBooleanVariable!=false) {
debug(me,"y",someBooleanVariable);
}
Code: Select all
2 false
2 x false
Code: Select all
2 false
2 y false