diff options
author | Littleboy | 2012-08-21 22:41:55 -0400 |
---|---|---|
committer | Littleboy | 2012-08-27 21:49:36 -0400 |
commit | 86febf3d1dfd780c35c505accc55df28c1ac80c3 (patch) | |
tree | 6b7a50b36a41f25570710f97e50d8b59b801aa61 /engines/lastexpress/game | |
parent | 6f18ec2104b5cf02ebeb0c928a5c2507c99d820d (diff) | |
download | scummvm-rg350-86febf3d1dfd780c35c505accc55df28c1ac80c3.tar.gz scummvm-rg350-86febf3d1dfd780c35c505accc55df28c1ac80c3.tar.bz2 scummvm-rg350-86febf3d1dfd780c35c505accc55df28c1ac80c3.zip |
LASTEXPRESS: Check for valid data in Beetle::invertDirection()
Diffstat (limited to 'engines/lastexpress/game')
-rw-r--r-- | engines/lastexpress/game/beetle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/lastexpress/game/beetle.cpp b/engines/lastexpress/game/beetle.cpp index 2a72459697..7cdd67caf5 100644 --- a/engines/lastexpress/game/beetle.cpp +++ b/engines/lastexpress/game/beetle.cpp @@ -351,6 +351,9 @@ void Beetle::drawUpdate() { } void Beetle::invertDirection() { + if (!_data) + error("[Beetle::invertDirection] Sequences have not been loaded"); + switch (_data->indexes[_data->offset]) { default: break; |