- Fixed: ApplyActorDefault() must ensure that dataint is non-negative before
calculating a non-NULL state. When compiling with Visual C++, states are stored in the defaults list as byte values, but when compiling with GCC, they are passed as 32-bit arguments to the function directly. So in VC++, using ~0 to specify a NULL state appears as 255, but in GCC, it appears as -1. SVN r121 (trunk)
This commit is contained in:
parent
2ad91cc973
commit
c4bda7e0be
2 changed files with 9 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ static void ApplyActorDefault (int defnum, const char *datastr, int dataint)
|
|||
datasound = S_FindSound (datastr);
|
||||
}
|
||||
}
|
||||
else if (defnum > ADEF_LastString && dataint < 255)
|
||||
else if (defnum > ADEF_LastString && dataint >= 0 && dataint < 255)
|
||||
{
|
||||
datastate = DefaultStates (sgClass) + dataint;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue