Commit e7454ba0 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't zero-out static variables for option index/bar

This prevents re-entry to the door configurations from returning to the previously highlighted menu option. Not sure why this was, but clearly re-zeroing static variables makes no sense in the first place.
parent 632e51d8
......@@ -1053,9 +1053,6 @@ void xtrn_cfg(uint section)
uint i,xtrnnum[MAX_OPTS+1];
static xtrn_t savxtrn;
while(1) {
for(i=0,j=0;i<cfg.total_xtrns && j<MAX_OPTS;i++)
if(cfg.xtrn[i]->sec==section) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment