mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Fix error compiling with pre-C++11 compilers
This commit is contained in:
parent
7e08b87ff7
commit
7676104f4c
@ -47,7 +47,7 @@ URLSpec(const URLSpec &url, const Filename &path) {
|
||||
string dirname = get_path();
|
||||
|
||||
// Check if the path already ends in a slash.
|
||||
if (!dirname.empty() && dirname.back() == '/') {
|
||||
if (!dirname.empty() && dirname[dirname.size() - 1] == '/') {
|
||||
if (path[0] == '/') {
|
||||
// And the filename begins with one. Remove the extra slash.
|
||||
dirname.resize(dirname.size() - 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user