mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-31 06:25:23 -05:00
Fix bug where saving shared map assets wouldn't work
This commit is contained in:
parent
bd2c782021
commit
dec99c8cac
|
|
@ -740,7 +740,9 @@ void Project::saveMap(Map *map) {
|
|||
}
|
||||
|
||||
void Project::updateMapAttributes(Map* map) {
|
||||
mapAttributesTableMaster.insert(map->index.toInt(nullptr, 0), map->name);
|
||||
if (!mapAttributesTableMaster.contains(map->index.toInt())) {
|
||||
mapAttributesTableMaster.insert(map->index.toInt(), map->name);
|
||||
}
|
||||
|
||||
// Deep copy
|
||||
QMap<QString, QString> attrs = mapAttributes.value(map->name);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user