File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class CPtrNodeSingleLinkPoolSA final : public CPtrNodeSingleLinkPool
2828 std::size_t GetUsedSize () const override { return m_customPool->GetUsedSize (); }
2929
3030 bool Resize (std::size_t newSize) override { return m_customPool->SetCapacity (newSize); };
31+ void ResetCapacity () override { m_customPool->SetCapacity (MAX_POINTER_SINGLE_LINKS); };
3132
3233 static auto * GetPoolInstance () { return m_customPool; }
3334 static void StaticSetHooks ();
Original file line number Diff line number Diff line change @@ -515,6 +515,7 @@ CClientGame::~CClientGame()
515515 g_pGame->SetPreWeaponFireHandler (NULL );
516516 g_pGame->SetPostWeaponFireHandler (NULL );
517517 g_pGame->SetTaskSimpleBeHitHandler (NULL );
518+ g_pGame->GetPools ()->GetPtrNodeSingleLinkPool ().ResetCapacity ();
518519 g_pGame->GetAudioEngine ()->SetWorldSoundHandler (NULL );
519520 g_pCore->SetMessageProcessor (NULL );
520521 g_pCore->GetKeyBinds ()->SetKeyStrokeHandler (NULL );
Original file line number Diff line number Diff line change 1313class CPtrNodeSingleLinkPool
1414{
1515public:
16- virtual bool Resize (std::size_t size) = 0;
16+ virtual bool Resize (std::size_t size) = 0;
17+ virtual void ResetCapacity () = 0;
1718 virtual std::size_t GetCapacity () const = 0;
1819 virtual std::size_t GetUsedSize () const = 0;
1920};
You can’t perform that action at this time.
0 commit comments