Skip to content

Commit 3356dc3

Browse files
committed
Fixed incorrect path in guiCreateStaticImage() error message
1 parent 20bb28c commit 3356dc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaGUIDefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ int CLuaGUIDefs::GUICreateStaticImage ( lua_State* luaVM )
758758
return 1;
759759
}
760760
else
761-
argStream.SetCustomError( strPath, "Bad file path" );
761+
argStream.SetCustomError( path, "Bad file path" );
762762
}
763763
}
764764
if ( argStream.HasErrors () )
@@ -1112,10 +1112,10 @@ int CLuaGUIDefs::GUIStaticImageLoadImage ( lua_State* luaVM )
11121112
return 1;
11131113
}
11141114
else
1115-
argStream.SetCustomError( strPath, "Error loading image" );
1115+
argStream.SetCustomError( filename, "Error loading image" );
11161116
}
11171117
else
1118-
argStream.SetCustomError( strPath, "Bad file path" );
1118+
argStream.SetCustomError( filename, "Bad file path" );
11191119
}
11201120
}
11211121
if ( argStream.HasErrors () )

0 commit comments

Comments
 (0)