mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
safety asserts
This commit is contained in:
parent
c6cbaa92f9
commit
738b2936e4
@ -514,6 +514,7 @@ make_directory(const Filename &filename) {
|
|||||||
_lock.acquire();
|
_lock.acquire();
|
||||||
PT(VirtualFile) result = do_get_file(filename, OF_make_directory);
|
PT(VirtualFile) result = do_get_file(filename, OF_make_directory);
|
||||||
_lock.release();
|
_lock.release();
|
||||||
|
nassertr_always(result != NULL, false);
|
||||||
return result->is_directory();
|
return result->is_directory();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -542,6 +543,7 @@ make_directory_full(const Filename &filename) {
|
|||||||
// Now make the last one, and check the return value.
|
// Now make the last one, and check the return value.
|
||||||
PT(VirtualFile) result = do_get_file(filename, OF_make_directory);
|
PT(VirtualFile) result = do_get_file(filename, OF_make_directory);
|
||||||
_lock.release();
|
_lock.release();
|
||||||
|
nassertr_always(result != NULL, false);
|
||||||
return result->is_directory();
|
return result->is_directory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user