diff --git a/components/esm/statstate.cpp b/components/esm/statstate.cpp
index e95295cc9e..c17bedd817 100644
--- a/components/esm/statstate.cpp
+++ b/components/esm/statstate.cpp
@@ -46,7 +46,7 @@ namespace ESM
         if (mProgress)
             esm.writeHNT("STPR", mProgress);
     }
-
-    template class StatState<int>;
-    template class StatState<float>;
 }
+
+template struct ESM::StatState<int>;
+template struct ESM::StatState<float>;