diff options
Diffstat (limited to 'src/script/script_info.cpp')
-rw-r--r-- | src/script/script_info.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/script_info.cpp b/src/script/script_info.cpp index 779236ebc..b5a83ccb2 100644 --- a/src/script/script_info.cpp +++ b/src/script/script_info.cpp @@ -263,6 +263,15 @@ SQInteger ScriptInfo::AddLabels(HSQUIRRELVM vm) } sq_pop(vm, 1); + /* Check labels for completeness */ + config->complete_labels = true; + for (int value = config->min_value; value <= config->max_value; value++) { + if (!config->labels->Contains(value)) { + config->complete_labels = false; + break; + } + } + return 0; } |