From deac1e7fad4960640b313deff3b1b70ac23fe9b8 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Mon, 28 Jan 2013 11:44:14 -0500 Subject: [PATCH] Fix some compiler errors... --- Core/include/BlockStats.h | 2 +- Core/src/BlockStats.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/include/BlockStats.h b/Core/include/BlockStats.h index 97c6d9b..ed8ce2a 100644 --- a/Core/include/BlockStats.h +++ b/Core/include/BlockStats.h @@ -61,6 +61,7 @@ class BlockStatManager { class BlockStatList { public: BlockStatList(); + BlockStatList(const BlockStatList &other); ~BlockStatList(); void AddStat(const BlockStat &stat); @@ -69,7 +70,6 @@ class BlockStatManager { private: BlockStatList(const BlockStat &stat); - BlockStatList(const BlockStatList &other); BlockStat m_Stat; BlockStatList *m_Tail; diff --git a/Core/src/BlockStats.cpp b/Core/src/BlockStats.cpp index f097a59..5a18f5b 100644 --- a/Core/src/BlockStats.cpp +++ b/Core/src/BlockStats.cpp @@ -86,7 +86,7 @@ void BlockStatManager::Copy(const BlockStatManager &other) { // copying this class and make sure to actually create a new instance. assert(!"We shouldn't be copying these in this manner!"); - m_BlockStatList = new BlockStatList(other.m_BlockStatList); + m_BlockStatList = new BlockStatList(*other.m_BlockStatList); m_BlockStatListSz = other.m_BlockStatListSz; m_NextBlock = other.m_NextBlock;