mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
ENGINES: Disallow clearing an already clear pause token.
This commit is contained in:
parent
830a239b04
commit
1b4ce9096f
@ -852,9 +852,10 @@ PauseToken::PauseToken(const PauseToken &t2) : _engine(t2._engine) {
|
||||
}
|
||||
|
||||
void PauseToken::clear() {
|
||||
if (_engine) {
|
||||
_engine->resumeEngine();
|
||||
if (!_engine) {
|
||||
error("Tried to clear an already cleared PauseToken");
|
||||
}
|
||||
_engine->resumeEngine();
|
||||
_engine = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user