1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 12:25:12 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2019-09-10 14:53:02 +02:00
parent 465674ca68
commit d983138f77
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -636,7 +636,7 @@ bool luaLoadMixScript(uint8_t index)
bool luaLoadFunctionScript(uint8_t index, uint8_t ref) bool luaLoadFunctionScript(uint8_t index, uint8_t ref)
{ {
if ((ref >= SCRIPT_GFUNC_FIRST) && g_model.noGlobalFunctions) if (ref >= SCRIPT_GFUNC_FIRST && g_model.noGlobalFunctions)
return false; return false;
CustomFunctionData & fn = (ref < SCRIPT_GFUNC_FIRST ? g_model.customFn[index] : g_eeGeneral.customFn[index]); CustomFunctionData & fn = (ref < SCRIPT_GFUNC_FIRST ? g_model.customFn[index] : g_eeGeneral.customFn[index]);