- refactored the level backup data needed by the serializer into p_saveg.h.

This commit is contained in:
Christoph Oelckers 2017-01-08 12:11:31 +01:00
commit 5ee52f159e
5 changed files with 32 additions and 16 deletions

View file

@ -573,6 +573,12 @@ public:
this->Array = new T[amount];
this->Count = amount;
}
TStaticArray &operator=(const TStaticArray &other)
{
Alloc(other.Size());
memcpy(Array, other.Array, Count * sizeof(T));
return *this;
}
};