HLLib: correct access to template-inherited variable

If the superclass is a template class, member variables can only be
accessed via the this pointer.
This commit is contained in:
Ondřej Hošek 2013-11-22 02:00:32 +01:00
parent 5850344f8a
commit 537c4d8303
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ hlVoid CSGAFile::CSGADirectory<TSGAHeader, TSGADirectoryHeader, TSGASection, TSG
template<typename TSGAHeader, typename TSGADirectoryHeader, typename TSGASection, typename TSGAFolder, typename TSGAFile>
CDirectoryFolder *CSGAFile::CSGADirectory<TSGAHeader, TSGADirectoryHeader, TSGASection, TSGAFolder, TSGAFile>::CreateRoot()
{
CDirectoryFolder *pRoot = new CDirectoryFolder(&File);
CDirectoryFolder *pRoot = new CDirectoryFolder(&this->File);
for(hlUInt i = 0; i < this->pDirectoryHeader->uiSectionCount; i++)
{