Codechange: Use unique_ptr for all pointers in script instance. (#14339)

Removes manual memory management with new/delete.
This commit is contained in:
Peter Nelson
2025-07-19 09:29:30 +01:00
committed by GitHub
parent b8e56cd05d
commit 7bb4940ebd
4 changed files with 22 additions and 26 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ void AIInstance::Died()
void AIInstance::LoadDummyScript()
{
ScriptAllocatorScope alloc_scope(this->engine);
ScriptAllocatorScope alloc_scope(this->engine.get());
Script_CreateDummy(this->engine->GetVM(), STR_ERROR_AI_NO_AI_FOUND, "AI");
}