summaryrefslogtreecommitdiffstats
path: root/src/view/MapView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/MapView.cpp')
-rw-r--r--src/view/MapView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/MapView.cpp b/src/view/MapView.cpp
index c1c0639..20d5af5 100644
--- a/src/view/MapView.cpp
+++ b/src/view/MapView.cpp
@@ -31,7 +31,7 @@ namespace RPGEdit {
namespace View {
-MapView::MapView(const std::shared_ptr<Window> &window0, const std::vector<std::string> &tileset)
+MapView::MapView(const std::shared_ptr<Window> &window0, const std::vector<std::pair<std::string, int>> &tileset)
: window(window0) {
uint32_t rmask, gmask, bmask, amask;
@@ -59,7 +59,7 @@ MapView::MapView(const std::shared_ptr<Window> &window0, const std::vector<std::
.h = 0,
};
- SDL_Surface *sprite = spriteCache->get("tile", tileset[i], 0);
+ SDL_Surface *sprite = spriteCache->get("tile", tileset[i].first, tileset[i].second);
SDL_SetSurfaceBlendMode(sprite, SDL_BLENDMODE_NONE);
SDL_BlitSurface(sprite, nullptr, surface, &rect);