mirror of https://github.com/zeldaret/botw.git
ksys/act: Fix ~ActorLinkConstDataAccess
This commit is contained in:
parent
0dc0752530
commit
7e96f826c0
|
@ -4,8 +4,11 @@
|
|||
namespace ksys::act {
|
||||
|
||||
ActorLinkConstDataAccess::~ActorLinkConstDataAccess() {
|
||||
if (mAcquired)
|
||||
acquire(nullptr);
|
||||
if (mAcquired && mProc)
|
||||
mProc->release();
|
||||
|
||||
mAcquired = false;
|
||||
mProc = nullptr;
|
||||
}
|
||||
|
||||
bool ActorLinkConstDataAccess::acquire(BaseProc* proc) {
|
||||
|
|
Loading…
Reference in New Issue