mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fix assertion condition in initializePaths()
This commit is contained in:
@@ -220,7 +220,7 @@ void initializePaths()
|
|||||||
//TODO: Test this code
|
//TODO: Test this code
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
uint32_t len = sizeof(buf);
|
uint32_t len = sizeof(buf);
|
||||||
assert(_NSGetExecutablePath(buf, &len) != 0);
|
assert(_NSGetExecutablePath(buf, &len) != -1);
|
||||||
|
|
||||||
pathRemoveFile(buf, '/');
|
pathRemoveFile(buf, '/');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user