# HG changeset patch # User Jacob Alexander # Date 1440214427 25200 # Node ID 23104e8e24f4545effc0c3f932627a18a1fae5e3 # Parent 39e338a6733dc2a8b791bc2e9a5d7d0a314eb6d0 Fixing layer stack evaluation - Layers were stacked correctly, but evaluated backwards diff -r 39e338a6733d -r 23104e8e24f4 Macro/PartialMap/macro.c --- a/Macro/PartialMap/macro.c Fri Aug 21 19:43:45 2015 -0700 +++ b/Macro/PartialMap/macro.c Fri Aug 21 20:33:47 2015 -0700 @@ -374,7 +374,7 @@ } // If no trigger macro is defined at the given layer, fallthrough to the next layer - for ( uint16_t layerIndex = 0; layerIndex < macroLayerIndexStackSize; layerIndex++ ) + for ( uint16_t layerIndex = macroLayerIndexStackSize; layerIndex != 0xFFFF; layerIndex-- ) { // Lookup Layer const Layer *layer = &LayerIndex[ macroLayerIndexStack[ layerIndex ] ];