diff options
Diffstat (limited to 'fxjs/cjs_position.cpp')
-rw-r--r-- | fxjs/cjs_position.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cjs_position.cpp b/fxjs/cjs_position.cpp index ba1f3d947c..16e4ab093b 100644 --- a/fxjs/cjs_position.cpp +++ b/fxjs/cjs_position.cpp @@ -13,8 +13,7 @@ const JSConstSpec CJS_Position::ConstSpecs[] = { {"textIconV", JSConstSpec::Number, 3, 0}, {"iconTextH", JSConstSpec::Number, 4, 0}, {"textIconH", JSConstSpec::Number, 5, 0}, - {"overlay", JSConstSpec::Number, 6, 0}, - {0, JSConstSpec::Number, 0, 0}}; + {"overlay", JSConstSpec::Number, 6, 0}}; int CJS_Position::ObjDefnID = -1; @@ -22,5 +21,5 @@ int CJS_Position::ObjDefnID = -1; void CJS_Position::DefineJSObjects(CFXJS_Engine* pEngine) { ObjDefnID = pEngine->DefineObj("position", FXJSOBJTYPE_STATIC, nullptr, nullptr); - DefineConsts(pEngine, ObjDefnID, ConstSpecs); + DefineConsts(pEngine, ObjDefnID, ConstSpecs, FX_ArraySize(ConstSpecs)); } |