summaryrefslogtreecommitdiffstats
path: root/pokemodr/TilemapModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/TilemapModel.cpp')
-rw-r--r--pokemodr/TilemapModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemodr/TilemapModel.cpp b/pokemodr/TilemapModel.cpp
index b903fd00..dc205250 100644
--- a/pokemodr/TilemapModel.cpp
+++ b/pokemodr/TilemapModel.cpp
@@ -78,7 +78,7 @@ bool TilemapModel::setData(const QModelIndex& index, const QVariant& value, int
if (role != Qt::EditRole)
return false;
// emit(setDataChanged(index, index));
- (*m_map)(index.row(), index.column()) = m_pokemod->tile(value.toInt())->id();
+ m_map->set(index.row(), index.column(), m_pokemod->tile(value.toInt())->id());
emit(dataChanged(index, index));
return true;
}