TileImages: fix bug (shadowed variable) in LoaderContext.getImage()
This commit is contained in:
parent
fbd3a0dc94
commit
a68c533ef5
1 changed files with 3 additions and 3 deletions
|
@ -115,10 +115,10 @@ public class TileImages
|
||||||
//implements LoaderContext
|
//implements LoaderContext
|
||||||
public BufferedImage getImage(String fileName)
|
public BufferedImage getImage(String fileName)
|
||||||
{
|
{
|
||||||
if (!images.containsKey(name)) {
|
if (!images.containsKey(fileName)) {
|
||||||
images.put(name, loadImage("/"+name+"/"+fileName));
|
images.put(fileName, loadImage("/"+name+"/"+fileName));
|
||||||
}
|
}
|
||||||
return images.get(name);
|
return images.get(fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue