mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-26 02:07:26 +00:00
Little bugfix
This commit is contained in:
parent
6d4b9502cb
commit
7630587279
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue