Fixed size_t that should be asUINT.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-10 15:15:46 +02:00
parent bbb01ae458
commit d2573fe959
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 2 deletions

View File

@ -124,12 +124,12 @@ void AngelScripResolver::FinalizeModule() {
int r = _builder.BuildModule();
if (r < 0)
throw CreatureException("Building Script Module failed.");
int count = _mainModule->GetObjectTypeCount();
asUINT count = _mainModule->GetObjectTypeCount();
std::regex metadataMatcher("^\\s*(\\w+)([\\w\\s=]*)$", std::regex_constants::icase);
std::regex variableMatcher("\\s*(\\w+)=(\\w+)", std::regex_constants::icase);
std::smatch base_match;
for (size_t n = 0; n < count; n++) {
for (asUINT n = 0; n < count; n++) {
auto typeInfo = _mainModule->GetObjectTypeByIndex(n);
auto metadata = _builder.GetMetadataForType(typeInfo->GetTypeId());
for (size_t m = 0; m < metadata.size(); m++) {