dxx-rebirth/similar
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
..
2d Simplify MALLOC invocations 2021-06-28 03:37:48 +00:00
3d Reduce uses of RAIIdmem for local variables 2021-06-28 03:37:49 +00:00
arch Avoid double-scaling sounds at start time 2021-06-28 03:37:51 +00:00
editor Use structured bindings for more zip calls 2021-06-28 03:37:51 +00:00
main Keep builtin movies loaded until the end of main 2021-07-25 23:00:56 +00:00
misc Close descent.hog on exit 2021-06-28 03:37:49 +00:00