Fix D2 editor loading RDL files

This commit is contained in:
Kp 2013-11-09 18:45:27 +00:00
parent ba1bbce571
commit 9efbba6c94

View file

@ -1305,7 +1305,7 @@ int load_level(const char * filename_passed)
if (!PHYSFSX_exists(filename,1))
{
char *p = strrchr(filename, '.');
const char *p = strrchr(filename_passed, '.');
if (d_stricmp(p, ".lvl"))
strcpy(filename, filename_passed); // set to what was passed