Update script.bgs

Fix for local var collision detected by the newest bgscript compiler.