s-d-a / DCS-ExportScripts

DCS World Export Scripts
GNU Lesser General Public License v3.0
114 stars 52 forks source link

A-10C digital clock issues #1

Closed mcmicha closed 9 years ago

mcmicha commented 9 years ago

Version 0.9.9 BETA File A-10C.lua, Line 822

    if lDigitalClock:sub(7, 7) == "C" then
        lDigitalClock = lDigitalClock:sub(1, 7)
    end 

This send on a "dark and cold" start, a string ("ETETCCse") to HT. Then crashes HT.

Change to follow code.

    if lDigitalClock:sub(7, 7) == "C" then
        lDigitalClock = lDigitalClock:sub(1, 7)
    else
        lDigitalClock = ""
    end
mcmicha commented 9 years ago

fixed with commit https://github.com/s-d-a/DCS-ExportScripts/commit/0924db9b5723bed7d5505ec7a3b5fe2021324bf8