summaryrefslogtreecommitdiff
path: root/hge/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hge/resource.cpp')
-rw-r--r--hge/resource.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/hge/resource.cpp b/hge/resource.cpp
index 0fb7051..4937ee1 100644
--- a/hge/resource.cpp
+++ b/hge/resource.cpp
@@ -245,9 +245,8 @@ static int locateOneElement(char *buf)
static int locateCorrectCase(char *buf)
{
char *ptr = buf;
- char *prevptr = buf;
- while (ptr = strchr(ptr + 1, '/'))
+ while ((ptr = strchr(ptr + 1, '/')))
{
*ptr = '\0'; /* block this path section off */
if (!locateOneElement(buf))