Fix incorrect ICVarIteratorInternal function order

The destructor is the last function.
This commit is contained in:
Kawe Mazidjatari 2023-06-26 22:42:54 +02:00
parent ef69611435
commit 33dfe63f67
2 changed files with 4 additions and 3 deletions

View File

@ -112,12 +112,12 @@ protected:
class ICVarIteratorInternal
{
public:
virtual ~ICVarIteratorInternal(void) { }
virtual void SetFirst(void) = 0;
virtual void Next(void) = 0;
virtual bool IsValid(void) = 0;
virtual ConCommandBase* Get(void) = 0;
virtual ~ICVarIteratorInternal(void) { }
};
virtual ICVarIteratorInternal* FactoryInternalIterator(void) = 0;

View File

@ -88,13 +88,14 @@ protected:
class CCVarIteratorInternal : public ICVarIteratorInternal
{
public:
virtual ~CCVarIteratorInternal() { }
virtual void SetFirst(void) = 0;
virtual void Next(void) = 0;
virtual bool IsValid(void) = 0;
virtual ConCommandBase* Get(void) = 0;
virtual ~CCVarIteratorInternal() { }
CCvar* const m_pOuter = nullptr;
CConCommandHash* const m_pHash = nullptr;
CConCommandHash::CCommandHashIterator_t m_hashIter;