1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-26 02:07:26 +00:00

Little bugfix

This commit is contained in:
fgenesis 2014-04-07 04:40:50 +02:00
parent 6d4b9502cb
commit 7630587279

View file

@ -23,6 +23,9 @@ DirBase::~DirBase()
File *DirBase::getFile(const char *fn)
{
while(fn[0] == '.' && fn[1] == '/')
fn += 2;
const char *slashpos = strchr(fn, '/');
if(!slashpos)
return getFileByName(fn, true);