mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
[Client] Fix if check in ObjectList::setMemberShorts()
This commit is contained in:
parent
19418f4953
commit
02bca3f52d
@ -815,7 +815,7 @@ void ObjectList::setMemberShorts()
|
||||
// Mimic the way a Ptr is fetched in InterpreterContext for similar situations
|
||||
MWWorld::Ptr ptrFound = MWBase::Environment::get().getWorld()->searchPtr(baseObject.refId, false);
|
||||
|
||||
if (!ptrFound.isEmpty())
|
||||
if (ptrFound)
|
||||
{
|
||||
LOG_APPEND(TimedLog::LOG_VERBOSE, "-- Found %s %i-%i", ptrFound.getCellRef().getRefId().c_str(),
|
||||
ptrFound.getCellRef().getRefNum(), ptrFound.getCellRef().getMpNum());
|
||||
|
Loading…
x
Reference in New Issue
Block a user