Fix a segfault caused by animated desks and switching to area without a desk (#718)

* Fix a segfault caused by animated desks because aolayer did not make sure that movie_delays is not empty
This happened because kill() did not actually reset the max_frames. Fix that too.

* do the thingy longbyte said
This commit is contained in:
Crystalwarrior 2022-05-21 17:17:24 +03:00 committed by GitHub
parent a1edef048f
commit 8657f7c2a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -531,6 +531,8 @@ void AOLayer::kill()
this->clear(); this->clear();
movie_frames.clear(); movie_frames.clear();
movie_delays.clear(); movie_delays.clear();
last_max_frames = max_frames;
max_frames = 0;
last_path = ""; last_path = "";
} }