From 1f215d2306ea718a3030c4123ef0c8a3645b1fdf Mon Sep 17 00:00:00 2001 From: FeniksFire Date: Sun, 28 May 2017 12:17:18 +0200 Subject: [PATCH] Fix http://bugs.vcmi.eu/view.php?id=2677. --- lib/mapObjects/ObjectTemplate.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/mapObjects/ObjectTemplate.cpp b/lib/mapObjects/ObjectTemplate.cpp index 3b7f4b65c..f7b797a84 100644 --- a/lib/mapObjects/ObjectTemplate.cpp +++ b/lib/mapObjects/ObjectTemplate.cpp @@ -54,7 +54,8 @@ ObjectTemplate::ObjectTemplate(): visitDir(8|16|32|64|128), // all but top id(Obj::NO_OBJ), subid(0), - printPriority(0) + printPriority(0), + stringID("") { } @@ -65,7 +66,8 @@ ObjectTemplate::ObjectTemplate(const ObjectTemplate& other): subid(other.subid), printPriority(other.printPriority), animationFile(other.animationFile), - editorAnimationFile(other.editorAnimationFile) + editorAnimationFile(other.editorAnimationFile), + stringID(other.stringID) { //default copy constructor is failing with usedTiles this for unknown reason @@ -83,6 +85,7 @@ ObjectTemplate & ObjectTemplate::operator=(const ObjectTemplate & rhs) printPriority = rhs.printPriority; animationFile = rhs.animationFile; editorAnimationFile = rhs.editorAnimationFile; + stringID = rhs.stringID; usedTiles.clear(); usedTiles.resize(rhs.usedTiles.size());