diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-08 16:43:06 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-08 16:43:06 -0400 |
| commit | 08cdf72330276a4b4883fea41c3ada1087800a41 (patch) | |
| tree | c60f14feee3dd40e5d762a17cb8c76ba446d1ab8 /src/asset-manager.hpp | |
| parent | 9d6c681037eb4fb3c6d9eca6b1ff1d01d429614e (diff) | |
Use move operator for DynArray<T>::Push
The EventBucket struct has a DynArray as a member.
Calling ::Push({}) instantiates a new item and thus a new
DynArray. When the new `{}` object goes out of scope, the DynArray
destructor was being called, invalidating the data pointer.
This commit ensures that if the object is cloned or moved, the
pointer, which now lives in the outer array, remains valid.
Diffstat (limited to 'src/asset-manager.hpp')
0 files changed, 0 insertions, 0 deletions
