summaryrefslogtreecommitdiff
path: root/fxjs/cjs_scalewhen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_scalewhen.cpp')
-rw-r--r--fxjs/cjs_scalewhen.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cjs_scalewhen.cpp b/fxjs/cjs_scalewhen.cpp
index b13e7ed928..59f04870ca 100644
--- a/fxjs/cjs_scalewhen.cpp
+++ b/fxjs/cjs_scalewhen.cpp
@@ -10,8 +10,7 @@ const JSConstSpec CJS_ScaleWhen::ConstSpecs[] = {
{"always", JSConstSpec::Number, 0, 0},
{"never", JSConstSpec::Number, 1, 0},
{"tooBig", JSConstSpec::Number, 2, 0},
- {"tooSmall", JSConstSpec::Number, 3, 0},
- {0, JSConstSpec::Number, 0, 0}};
+ {"tooSmall", JSConstSpec::Number, 3, 0}};
int CJS_ScaleWhen::ObjDefnID = -1;
@@ -19,5 +18,5 @@ int CJS_ScaleWhen::ObjDefnID = -1;
void CJS_ScaleWhen::DefineJSObjects(CFXJS_Engine* pEngine) {
ObjDefnID =
pEngine->DefineObj("scaleWhen", FXJSOBJTYPE_STATIC, nullptr, nullptr);
- DefineConsts(pEngine, ObjDefnID, ConstSpecs);
+ DefineConsts(pEngine, ObjDefnID, ConstSpecs, FX_ArraySize(ConstSpecs));
}