diff --git a/src/CBot/CBotDebug.cpp b/src/CBot/CBotDebug.cpp index db0c5591..c50bb302 100644 --- a/src/CBot/CBotDebug.cpp +++ b/src/CBot/CBotDebug.cpp @@ -40,7 +40,6 @@ void CBotDebug::DumpCompiledProgram(CBotProgram* program) for (CBotFunction* func : program->GetFunctions()) { funcIdMap[func->m_nFuncIdent] = func; - func = func->GetNext(); } std::set finished; diff --git a/src/CBot/CBotInstr/CBotFunction.h b/src/CBot/CBotInstr/CBotFunction.h index 32214960..66637b51 100644 --- a/src/CBot/CBotInstr/CBotFunction.h +++ b/src/CBot/CBotInstr/CBotFunction.h @@ -39,7 +39,7 @@ namespace CBot * void classname::test() { ... } * \endcode */ -class CBotFunction : public CBotInstr, public CBotLinkedList +class CBotFunction : public CBotInstr { public: CBotFunction(); @@ -91,9 +91,6 @@ public: CBotStack* &pj, CBotVar* pInstance = nullptr); - using CBotLinkedList::GetNext; - using CBotLinkedList::AddNext; - /*! * \brief Compile a function call *