dxx-rebirth/d2x-rebirth/main
Kp c26fd86450 Keep builtin movies loaded until the end of main
Commit d0d7545ec1 ("Unload robot movies on exit") intended to shorten
the lifetime of the loaded data, but failed to save the unique_ptr, so
the lifetime was shortened more than intended.  Save the unique_ptr so
that the movies remain loaded.

Also, add a [[nodiscard]] annotation so that the compiler can warn if
this mistake is repeated.

Reported-by: Q3BFG10K <https://github.com/dxx-rebirth/dxx-rebirth/issues/599>
Fixes: d0d7545ec1 ("Unload robot movies on exit")
2021-07-25 23:00:56 +00:00
..
escort.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
gamepal.cpp Fix gcc-9 -Wstringop-truncation in gamepal.cpp 2019-05-11 20:18:29 +00:00
inferno.ini Reduce indirection resolving chosen menu item 2020-12-19 16:13:26 +00:00
libmve.h Remove indirection for movie memory management 2021-01-17 22:23:23 +00:00
movie.cpp Keep builtin movies loaded until the end of main 2021-07-25 23:00:56 +00:00
movie.h Keep builtin movies loaded until the end of main 2021-07-25 23:00:56 +00:00