diff options
author | Eugene Sandulenko | 2016-06-19 21:45:19 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 4109e8589077d035d76b7ed5bc3734f6a258eaf3 (patch) | |
tree | cd276b7e3dff15aa29b2890a36d1f22494f780f5 | |
parent | 5db0d15bc2b6e2f3e08666ffa3184bd04619d49a (diff) | |
download | scummvm-rg350-4109e8589077d035d76b7ed5bc3734f6a258eaf3.tar.gz scummvm-rg350-4109e8589077d035d76b7ed5bc3734f6a258eaf3.tar.bz2 scummvm-rg350-4109e8589077d035d76b7ed5bc3734f6a258eaf3.zip |
DIRECTOR: Lingo: Fix string alignment computation
-rw-r--r-- | engines/director/lingo/lingo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index 2da23ce7ba..676f25798f 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -114,7 +114,7 @@ public: int calcStringAlignment(const char *s) { int instLen = sizeof(inst); - int l = strlen(s); return l / instLen + (l + 1 + instLen - 1) % instLen; + int l = strlen(s); return (l + 1 + instLen - 1) / instLen; } public: |