Preserve the movie if loading state in readonly mode

This commit is contained in:
Ilari Liusvaara 2012-08-21 20:23:22 +03:00
parent 9015019e20
commit c5e759a127

View file

@ -341,6 +341,9 @@ void do_load_state(struct moviefile& _movie, int lmode)
set_preload_settings();
if(lmode == LOAD_STATE_CURRENT && movb.get_movie().readonly_mode())
lmode = LOAD_STATE_PRESERVE;
movie newmovie;
if(lmode == LOAD_STATE_PRESERVE)
newmovie = movb.get_movie();