Fixed size_t that should be asUINT.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bbb01ae458
commit
d2573fe959
|
@ -124,12 +124,12 @@ void AngelScripResolver::FinalizeModule() {
|
||||||
int r = _builder.BuildModule();
|
int r = _builder.BuildModule();
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
throw CreatureException("Building Script Module failed.");
|
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 metadataMatcher("^\\s*(\\w+)([\\w\\s=]*)$", std::regex_constants::icase);
|
||||||
std::regex variableMatcher("\\s*(\\w+)=(\\w+)", std::regex_constants::icase);
|
std::regex variableMatcher("\\s*(\\w+)=(\\w+)", std::regex_constants::icase);
|
||||||
std::smatch base_match;
|
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 typeInfo = _mainModule->GetObjectTypeByIndex(n);
|
||||||
auto metadata = _builder.GetMetadataForType(typeInfo->GetTypeId());
|
auto metadata = _builder.GetMetadataForType(typeInfo->GetTypeId());
|
||||||
for (size_t m = 0; m < metadata.size(); m++) {
|
for (size_t m = 0; m < metadata.size(); m++) {
|
||||||
|
|
Loading…
Reference in New Issue