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:
parent
e8ad4df1fa
commit
8f754ced42
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue