浏览代码

Compile fix for MSVS (compiler bug?).

DjWarmonger 9 年之前
父节点
当前提交
9049990079
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/mapHandler.h

+ 2 - 1
client/mapHandler.h

@@ -344,7 +344,8 @@ public:
 
 	//terrain graphics
 
-	typedef std::vector<std::array<std::unique_ptr<CAnimation>, 4>> TFlippedAnimations; //[type, rotation]
+	//FIXME: unique_ptr should be enough, but fails to compile in MSVS 2013
+	typedef std::vector<std::array<std::shared_ptr<CAnimation>, 4>> TFlippedAnimations; //[type, rotation]
 	typedef std::vector<std::vector<std::array<IImage *, 4>>> TFlippedCache;//[type, view type, rotation]
 
 	TFlippedAnimations terrainAnimations;//[terrain type, rotation]