From 1e8e700ee645fa642e868c79c2717c82d3509f55 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 18 Dec 2014 23:25:36 +1100 Subject: Change TileSpec::frames to be std::vector not std::map Signed-off-by: Craig Robbins --- src/nodedef.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nodedef.cpp') diff --git a/src/nodedef.cpp b/src/nodedef.cpp index b046957e6..e7bf9091f 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -934,7 +934,10 @@ void CNodeDefManager::fillTileAttribs(ITextureSource *tsrc, TileSpec *tile, tile->material_flags &= ~MATERIAL_FLAG_ANIMATION_VERTICAL_FRAMES; } else { std::ostringstream os(std::ios::binary); + tile->frames.resize(frame_count); + for (int i = 0; i < frame_count; i++) { + FrameSpec frame; os.str(""); -- cgit v1.2.3