]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way.rb
Combine the address and netmask for an ACL in one column
[rails.git] / app / models / old_way.rb
index c2af4f21ce45e2944146fecc370ded8b4d56a2e4..00642cdb3568eeb834aa2580652484e5e7a188d9 100644 (file)
@@ -137,7 +137,7 @@ class OldWay < ActiveRecord::Base
       id = n; reuse = curnode.visible
       if oldnode.lat != curnode.lat or oldnode.lon != curnode.lon or oldnode.tags != curnode.tags then
         # node has changed: if it's in other ways, give it a new id
-        if curnode.ways-[self.node_id] then id=-1; reuse=false end
+        if curnode.ways-[self.way_id] then id=-1; reuse=false end
       end
       points << [oldnode.lon, oldnode.lat, id, curnode.version, oldnode.tags_as_hash, reuse]
     end