mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-23 07:38:09 -05:00
lib: implement check for empty data buffer
Fixes occasional crash
This commit is contained in:
parent
91de5a7df4
commit
dad9295d01
1 changed files with 4 additions and 0 deletions
|
@ -138,6 +138,10 @@ bool Object::ReplaceWithFile(FileBase *f)
|
|||
|
||||
bool Object::ExtractToFile(FileBase *f) const
|
||||
{
|
||||
if (data_.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (this->filetype()) {
|
||||
case MxOb::WAV:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue