Ver código fonte

Compile fix for MSVS (compiler bug?).

DjWarmonger 9 anos atrás
pai
commit
9049990079
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      client/mapHandler.h

+ 2 - 1
client/mapHandler.h

@@ -344,7 +344,8 @@ public:
 
 
 	//terrain graphics
 	//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]
 	typedef std::vector<std::vector<std::array<IImage *, 4>>> TFlippedCache;//[type, view type, rotation]
 
 
 	TFlippedAnimations terrainAnimations;//[terrain type, rotation]
 	TFlippedAnimations terrainAnimations;//[terrain type, rotation]