Clear references to map data on level change
These shouldn't be left as they'll now point towards potentially invalid memory and also cause errors with serializing. Arrays and maps holding them are cleared. Also unlinks and relinks inventory items correctly from the hashmap on traveling.
This commit is contained in:
parent
29b2253bdb
commit
269689703d
6 changed files with 87 additions and 3 deletions
|
|
@ -234,8 +234,8 @@ public:
|
|||
|
||||
TArray (std::initializer_list<T> list)
|
||||
{
|
||||
Most = list.size;
|
||||
Count = list.size;
|
||||
Most = list.size();
|
||||
Count = list.size();
|
||||
|
||||
if (Count > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue