XProger / OpenLara

Classic Tomb Raider open-source engine
http://xproger.info/projects/OpenLara/
BSD 2-Clause "Simplified" License
4.63k stars 360 forks source link

Fixed Linux error where files could not be loaded #484

Closed rafaegont1 closed 4 months ago

rafaegont1 commented 6 months ago

The changes made in d2e363d broke the line 2131 of utils.h file: return (name != NULL). It was comparing the literal address of const char* gEmpty = "" with NULL, causing the function static bool exists(const char *name) to always return true.

This problem where files could not be open is referred in issue #470.