ref: 2eb95bc583ced3b65af6e6c7b07194737d428ed8
parent: 12e1dc0cefe615b501ef6dbd28709f6d6b8e0440
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Dec 28 12:09:42 EST 2023
PR_Str: instead of throwing an error just return nil
--- a/pr_edict.c
+++ b/pr_edict.c
@@ -95,7 +95,8 @@
return pr->strings+i;
if(i < 0 && i >= -pr->num_str && pr->str[-1-i] != nil)
return pr->str[-1-i];
- Host_Error("PR_Str: invalid offset %d", i);
+ Con_Printf("PR_Str: invalid offset (strings=%d num_str=%d): %d", pr->strings_size, pr->num_str, i);
+ return nil;
}
/*