mirror of
https://gitlab.com/Scribble/gdlenhanced.git
synced 2026-08-17 14:23:04 -04:00
more conversions to weak pointers
This commit is contained in:
parent
b08ab94319
commit
e91df41c8e
21 changed files with 1201 additions and 747 deletions
|
|
@ -1041,9 +1041,10 @@ void CClient::GenerateStarterGear(std::shared_ptr<CWeenieObject> weenieObject, A
|
|||
std::shared_ptr<CContainerWeenie> sack = NULL;
|
||||
for (auto pack : weenie->m_Packs)
|
||||
{
|
||||
if (pack->AsContainer())
|
||||
std::shared_ptr<CWeenieObject> pPack = pack.lock();
|
||||
if (pPack && pPack->AsContainer())
|
||||
{
|
||||
sack = pack->AsContainer();
|
||||
sack = pPack->AsContainer();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue