OSDN Git Service

Sync GWT emulation of TmxMapLoader to core changes
authorJustin Shapcott <support@mobidevelop.com>
Sun, 12 May 2013 20:58:18 +0000 (13:58 -0700)
committerJustin Shapcott <support@mobidevelop.com>
Sun, 12 May 2013 20:58:18 +0000 (13:58 -0700)
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/maps/tiled/TmxMapLoader.java

index 26a15d3..32f5d32 100644 (file)
@@ -102,7 +102,7 @@ public class TmxMapLoader extends AsynchronousAssetLoader<TiledMap, TmxMapLoader
                        }
                        DirectImageResolver imageResolver = new DirectImageResolver(textures);
                        TiledMap map = loadTilemap(root, tmxFile, imageResolver);
-                       map.setOwnedTextures(textures.values().toArray());
+                       map.setOwnedResources(textures.values().toArray());
                        return map;
                } catch (IOException e) {
                        throw new GdxRuntimeException("Couldn't load tilemap '" + fileName + "'", e);