mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DIRECTOR: Added sanity checks to func_cursor()
This commit is contained in:
@@ -345,6 +345,15 @@ void Lingo::func_cursor(int c, int m) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (score->_loadedCast->getVal(c)->_surface == nullptr) {
|
||||
warning("cursor: empty sprite %d surface", c);
|
||||
return;
|
||||
}
|
||||
if (score->_loadedCast->getVal(m)->_surface == nullptr) {
|
||||
warning("cursor: empty sprite %d surface", m);
|
||||
return;
|
||||
}
|
||||
|
||||
byte *assembly = (byte *)malloc(16 * 16);
|
||||
byte *dst = assembly;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user