From 716766c9d50a6bd9005f621fcfce126b315d8f0f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henri=20Hyyryl=C3=A4inen?= <henri.hyyrylainen@gmail.com>
Date: Mon, 3 Sep 2018 11:26:04 +0300
Subject: [PATCH] Added (hopefully) a fix for building with new MSVC version

---
 src/engine/serialization.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/engine/serialization.cpp b/src/engine/serialization.cpp
index bc281958de2..5f500edb3a3 100644
--- a/src/engine/serialization.cpp
+++ b/src/engine/serialization.cpp
@@ -186,7 +186,12 @@ struct StorageContainer::Implementation {
     typename TypeInfo<T>::StoredType
         rawGet(const std::string& key,
             const typename TypeInfo<T>::StoredType& defaultValue =
-                typename TypeInfo<T>::StoredType()) const
+#ifdef _MSC_VER // Microsoft, why?
+                TypeInfo<T>::StoredType()
+#else
+                typename TypeInfo<T>::StoredType()
+#endif
+                ) const
     {
         auto iter = m_content.find(key);
         if(iter == m_content.end()) {