mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
This commit is contained in:
parent
4d1fb67594
commit
1f215d2306
@ -54,7 +54,8 @@ ObjectTemplate::ObjectTemplate():
|
|||||||
visitDir(8|16|32|64|128), // all but top
|
visitDir(8|16|32|64|128), // all but top
|
||||||
id(Obj::NO_OBJ),
|
id(Obj::NO_OBJ),
|
||||||
subid(0),
|
subid(0),
|
||||||
printPriority(0)
|
printPriority(0),
|
||||||
|
stringID("")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +66,8 @@ ObjectTemplate::ObjectTemplate(const ObjectTemplate& other):
|
|||||||
subid(other.subid),
|
subid(other.subid),
|
||||||
printPriority(other.printPriority),
|
printPriority(other.printPriority),
|
||||||
animationFile(other.animationFile),
|
animationFile(other.animationFile),
|
||||||
editorAnimationFile(other.editorAnimationFile)
|
editorAnimationFile(other.editorAnimationFile),
|
||||||
|
stringID(other.stringID)
|
||||||
{
|
{
|
||||||
//default copy constructor is failing with usedTiles this for unknown reason
|
//default copy constructor is failing with usedTiles this for unknown reason
|
||||||
|
|
||||||
@ -83,6 +85,7 @@ ObjectTemplate & ObjectTemplate::operator=(const ObjectTemplate & rhs)
|
|||||||
printPriority = rhs.printPriority;
|
printPriority = rhs.printPriority;
|
||||||
animationFile = rhs.animationFile;
|
animationFile = rhs.animationFile;
|
||||||
editorAnimationFile = rhs.editorAnimationFile;
|
editorAnimationFile = rhs.editorAnimationFile;
|
||||||
|
stringID = rhs.stringID;
|
||||||
|
|
||||||
usedTiles.clear();
|
usedTiles.clear();
|
||||||
usedTiles.resize(rhs.usedTiles.size());
|
usedTiles.resize(rhs.usedTiles.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user