From 537c4d83036e488b09214d36f1403d2571bae6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Fri, 22 Nov 2013 02:00:32 +0100 Subject: [PATCH] HLLib: correct access to template-inherited variable If the superclass is a template class, member variables can only be accessed via the this pointer. --- HLLib/SGAFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HLLib/SGAFile.cpp b/HLLib/SGAFile.cpp index 4d35013..9233fc8 100644 --- a/HLLib/SGAFile.cpp +++ b/HLLib/SGAFile.cpp @@ -352,7 +352,7 @@ hlVoid CSGAFile::CSGADirectory CDirectoryFolder *CSGAFile::CSGADirectory::CreateRoot() { - CDirectoryFolder *pRoot = new CDirectoryFolder(&File); + CDirectoryFolder *pRoot = new CDirectoryFolder(&this->File); for(hlUInt i = 0; i < this->pDirectoryHeader->uiSectionCount; i++) {