fix missing var

This commit is contained in:
project-am 2017-10-06 01:52:42 +02:00 committed by GitHub
parent f4b960f54d
commit d9c8d54870

View file

@ -7,7 +7,7 @@ var CacheImageData = 1;
function DrawGetImage(Source) {
// Search in the cache to find the image
if (!CacheImage[Source]) {
img = new Image;
var img = new Image;
img.src = Source;
CacheImage[Source] = img;
}