mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Check if sourceLength is -1 instead
This commit is contained in:
parent
ec8eaacc69
commit
459aa89ca2
1 changed files with 1 additions and 1 deletions
|
@ -783,7 +783,7 @@ GameScript *ScriptMaster::GetGameScriptInternal(str& filename)
|
|||
|
||||
sourceLength = gi.FS_ReadFile(filename.c_str(), &sourceBuffer, true);
|
||||
|
||||
if (sourceLength < 0) {
|
||||
if (sourceLength == -1) {
|
||||
throw ScriptException("Can't find '%s'\n", filename.c_str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue