diff options
author | unknown <gregory.currie@gmail.com> | 2014-12-18 23:25:36 +1100 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2014-12-21 02:41:17 +1000 |
commit | 1e8e700ee645fa642e868c79c2717c82d3509f55 (patch) | |
tree | cce5e4aa931cf593d6252e88d786a0a9ef304559 /src/nodedef.cpp | |
parent | 0d55f43977080435c6e67a2851fb343dc65e153c (diff) | |
download | minetest-1e8e700ee645fa642e868c79c2717c82d3509f55.tar.gz minetest-1e8e700ee645fa642e868c79c2717c82d3509f55.tar.bz2 minetest-1e8e700ee645fa642e868c79c2717c82d3509f55.zip |
Change TileSpec::frames to be std::vector not std::map
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(""); |