Bug - Fixed Scripts running backwards

Lord_Kobel

Member
This started affecting me last night, although I didn't realise it at the time until I ran more scripts this morning. When I call a script from mafia, it runs backwards, that is, the line at the bottom of the script is executed first, then the one above it and so on. Is it supposed to do that?
 

xKiv

Active member
That would explain why my "shutdown" script (CLI) failed near the end .. without executing its first line
(IOW, I think I had the same problem)
 

edgy

Member
r11097 seems to be the culprit. r11096 is the latest version which executes CLI scripts top-down.
 

Bale

Minion
An ash script with a cli_execute{ } block executes the cli commands in reverse order while the ash elements execute properly. That's so weird.
 

Veracity

Developer
Staff member
Beat me by a few seconds; when I tried to check in the identical fix, svn told me it was already there.
Nice job! ;)
 
Top