mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Drop error if the Script cannot load the file
This commit is contained in:
parent
1f69fce10e
commit
888e35466b
1 changed files with 4 additions and 0 deletions
|
@ -1131,6 +1131,10 @@ void Script::LoadFile(const char *name)
|
|||
Close();
|
||||
|
||||
length = FILE_FS_ReadFile(name, (void **)&tempbuf);
|
||||
if (length == -1) {
|
||||
error("LoadFile", "Couldn't load %s\n", name);
|
||||
return;
|
||||
}
|
||||
|
||||
hasError = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue