Fixes potential error being ignored.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-20 11:11:43 +01:00
parent cb2f902194
commit 3bd5bb3fe6
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ void AngelScriptResolver::RegisterScriptType(asITypeInfo* typeInfo, const ArbUt:
}
}
void AngelScriptResolver::CreateScript(const char* name, const char* script) {
_builder.AddSectionFromMemory(name, script);
EnsureGreater(_builder.AddSectionFromMemory(name, script), 0);
}
void AngelScriptResolver::WriteByteCodeToFile(const char* file, bool stripDebugInfo) {
FILE* wFile = nullptr;