summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 4eca5552e..a65fc508c 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -599,15 +599,15 @@ struct DyedImageLoader
if (!rl->manager)
return nullptr;
- std::string path = rl->path;
- const size_t p = path.find('|');
+ std::string path1 = rl->path;
+ const size_t p = path1.find('|');
Dye *d = nullptr;
if (p != std::string::npos)
{
- d = new Dye(path.substr(p + 1));
- path = path.substr(0, p);
+ d = new Dye(path1.substr(p + 1));
+ path1 = path1.substr(0, p);
}
- SDL_RWops *const rw = MPHYSFSRWOPS_openRead(path.c_str());
+ SDL_RWops *const rw = MPHYSFSRWOPS_openRead(path1.c_str());
if (!rw)
{
delete d;