diff options
-rw-r--r-- | source/portals.d | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/portals.d b/source/portals.d index 000e182..3c7f35a 100644 --- a/source/portals.d +++ b/source/portals.d @@ -122,7 +122,9 @@ class Portals { line.formattedRead!`%d @ %s`(id, portalText); _portals[id] = Portal(); _portals[id].fromString(portalText, _portals); - _nextId++; + _overlay[_portals[id].y, _portals[id].x] = Spot('/', id); + _nextId++; // works if the file is guaranteed to use + // linearly incrementing id's } int id; if (_nextId > 0) { |