diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 3417f4385e..8560065303 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -724,7 +724,7 @@ load_related(const InternalName *suffix) const { if (ti != _related_textures.end()) { return (*ti).second; } - if (!has_fullpath()) { + if (_fullpath.empty()) { return (Texture*)NULL; } Filename main = _fullpath;