aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorunknown <gregory.currie@gmail.com>2014-12-18 23:25:36 +1100
committerCraig Robbins <kde.psych@gmail.com>2014-12-21 02:41:17 +1000
commit1e8e700ee645fa642e868c79c2717c82d3509f55 (patch)
treecce5e4aa931cf593d6252e88d786a0a9ef304559 /src/nodedef.cpp
parent0d55f43977080435c6e67a2851fb343dc65e153c (diff)
downloadminetest-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.cpp3
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("");