diff options
Diffstat (limited to 'engines/lab/labtext.cpp')
-rw-r--r-- | engines/lab/labtext.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/lab/labtext.cpp b/engines/lab/labtext.cpp index 4284865847..568ad828bf 100644 --- a/engines/lab/labtext.cpp +++ b/engines/lab/labtext.cpp @@ -154,12 +154,8 @@ void freeLabText() { /* Decrypts a chunk of text. */ /*****************************************************************************/ void decrypt(byte *text) { - if (text == NULL) - return; - - while (*text != '\0') { - (*text) -= (byte)95; - text++; + while (text && *text != '\0') { + *text++ -= (byte)95; } } |