diff options
author | cflip <cflip@cflip.net> | 2022-03-30 21:48:07 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-03-30 21:48:07 -0600 |
commit | 7803be09b7c0a133b1009408fea2fb1f1474e786 (patch) | |
tree | 351120df9e82973dfa5cda0f9945edbdb3936949 /src/train.cpp | |
parent | 2b35b393203403704b740f7627af701968c2dfcc (diff) |
Store train objects in a unique_ptr
The trains were being destructed after leaving the scope of the
addVehicle function. This change makes sure the trains stay allocated
for the entire lifetime of the level.
Fixes #2
Diffstat (limited to 'src/train.cpp')
0 files changed, 0 insertions, 0 deletions