]> git.openstreetmap.org Git - rails.git/blobdiff - lib/diff_reader.rb
Fix bug allowing created elements to reference deleted ones
[rails.git] / lib / diff_reader.rb
index 3ec4f146ad883a7b355231fc8b7a248cc7e13e81..4591430763358e9016a4ff3a6837229fe662d385 100644 (file)
@@ -124,8 +124,7 @@ class DiffReader
   # an exception subclassing OSM::APIError will be thrown.
   def commit
     # data structure used for mapping placeholder IDs to real IDs
-    node_ids, way_ids, rel_ids = {}, {}, {}
-    ids = { :node => node_ids, :way => way_ids, :relation => rel_ids }
+    ids = { :node => {}, :way => {}, :relation => {} }
 
     # take the first element and check that it is an osmChange element
     @reader.read