Fixes unused variable in scriptdictionary.cpp
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
057884b0a5
commit
acf7d1cc6e
|
@ -1068,7 +1068,7 @@ void RegisterScriptDictionary(asIScriptEngine *engine)
|
|||
|
||||
void RegisterScriptDictionary_Native(asIScriptEngine *engine)
|
||||
{
|
||||
int r;
|
||||
[[maybe_unused]] int r;
|
||||
|
||||
// The array<string> type must be available
|
||||
assert( engine->GetTypeInfoByDecl("array<string>") );
|
||||
|
@ -1147,7 +1147,7 @@ void RegisterScriptDictionary_Native(asIScriptEngine *engine)
|
|||
|
||||
void RegisterScriptDictionary_Generic(asIScriptEngine *engine)
|
||||
{
|
||||
int r;
|
||||
[[maybe_unused]] int r;
|
||||
|
||||
// Register the cleanup callback for the object type cache
|
||||
engine->SetEngineUserDataCleanupCallback(SDictionaryCache::Cleanup, DICTIONARY_CACHE);
|
||||
|
|
|
@ -92,7 +92,7 @@ OPTIONAL_BORROWED_PTR_GETTER_FUNC(PkmnLib::Battling::Pokemon, CreatureLib::Battl
|
|||
|
||||
static CScriptHandle AddVolatileWrapper(PkmnLib::Battling::Pokemon* obj, const ArbUt::StringView& name) {
|
||||
auto handle = CScriptHandle();
|
||||
auto *resolver = static_cast<AngelScriptResolver*>(obj->GetLibrary()->GetScriptResolver().get());
|
||||
auto* resolver = static_cast<AngelScriptResolver*>(obj->GetLibrary()->GetScriptResolver().get());
|
||||
auto script = static_cast<AngelScriptScript*>(obj->AddVolatileScript(name))->GetRawAngelscriptObject();
|
||||
script->AddRef();
|
||||
handle.Set(script, resolver->GetBaseType("PkmnScript"));
|
||||
|
|
Loading…
Reference in New Issue