LoadItemScript should return a borrowed ptr
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
727aab37d7
commit
f13b78e297
|
@ -16,5 +16,5 @@ export_func u8 CreatureLib_ScriptResolver_LoadScript(BattleScript*& out, ScriptR
|
|||
|
||||
export_func u8 CreatureLib_ScriptResolver_LoadItemScript(ItemUseScript*& out, ScriptResolver* p,
|
||||
const CreatureLib::Library::Item* item) {
|
||||
Try(out = p->LoadItemScript(item).TakeOwnership();)
|
||||
Try(out = p->LoadItemScript(item);)
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace CreatureLib::Battling {
|
|||
return nullptr;
|
||||
};
|
||||
|
||||
virtual ArbUt::OptionalUniquePtr<ItemUseScript>
|
||||
virtual ArbUt::OptionalBorrowedPtr<ItemUseScript>
|
||||
LoadItemScript([[maybe_unused]] const CreatureLib::Library::Item* non_null item) {
|
||||
return nullptr;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue