Drop error if the Script cannot load the file

This commit is contained in:
smallmodel 2024-11-08 22:28:33 +01:00
parent 1f69fce10e
commit 888e35466b
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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;