diff options
author | joerg <joerg> | 2016-12-15 23:53:38 +0000 |
---|---|---|
committer | joerg <joerg> | 2016-12-15 23:53:38 +0000 |
commit | a5eb5f34c31647e707fac5c0e8d8a6ca783a7696 (patch) | |
tree | 6f4cb1fce3d08db31a9b0bab6e4c8a08cc234386 /games/scummvm-tools/patches/patch-engines_gob_degob__script.cpp | |
parent | 4be9127d201ebedd6c34ff709389aad9ff7710be (diff) | |
download | pkgsrc-a5eb5f34c31647e707fac5c0e8d8a6ca783a7696.tar.gz |
Don't expect pointers to be ordered relative to 0.
Diffstat (limited to 'games/scummvm-tools/patches/patch-engines_gob_degob__script.cpp')
-rw-r--r-- | games/scummvm-tools/patches/patch-engines_gob_degob__script.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games/scummvm-tools/patches/patch-engines_gob_degob__script.cpp b/games/scummvm-tools/patches/patch-engines_gob_degob__script.cpp new file mode 100644 index 00000000000..297d57d725c --- /dev/null +++ b/games/scummvm-tools/patches/patch-engines_gob_degob__script.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-engines_gob_degob__script.cpp,v 1.1 2016/12/15 23:53:38 joerg Exp $ + +--- engines/gob/degob_script.cpp.orig 2016-12-15 16:41:44.458856760 +0000 ++++ engines/gob/degob_script.cpp +@@ -182,7 +182,7 @@ byte *ExtTable::unpack(const byte *packe + Script::Script(byte *totData, uint32 totSize, ExtTable *extTable) : + _totData(totData), _ptr(totData), _totSize(totSize), _extTable(extTable) { + +- assert((totData > 0) && (totSize > 128)); ++ assert(totData && (totSize > 128)); + + _indent = 0; + |