SCI: Flip assert

This way the assert is checking that the allocated buffer is large enough
for the memcpy that follows it.
This commit is contained in:
Willem Jan Palenstijn 2012-10-07 12:21:32 +02:00
parent e8ad4df1fa
commit 8f754ced42

View file

@ -144,7 +144,7 @@ void Script::load(int script_nr, ResourceManager *resMan) {
_heapStart = _buf + _scriptSize;
assert(_bufSize - _scriptSize <= heap->size);
assert(_bufSize - _scriptSize >= heap->size);
memcpy(_heapStart, heap->data, heap->size);
}