1
0
Fork 0
forked from fte/fteqw

Fix the cause of all of OneManClan's issues. A 64bit portability issue that won't always trigger on every 64bit machine. Thanks to OMC for helping me find that.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3963 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-01-25 04:40:10 +00:00
parent c1db4356f7
commit 420438ea79

View file

@ -505,7 +505,7 @@ string_t PR_StringToProgs (progfuncs_t *progfuncs, char *str)
if (!str)
return 0;
if (str-progfuncs->stringtable < addressableused)
if (str >= progfuncs->stringtable && str < progfuncs->stringtable + addressableused)
return str - progfuncs->stringtable;
for (i = prinst->numallocedstrings-1; i >= 0; i--)