- Fixed: Monsters should not check the inventory for damage absorbtion when

they have the MF5_NODAMAGE flag set.
- Added patch for saving automap zoom.


SVN r1587 (trunk)
This commit is contained in:
Christoph Oelckers 2009-05-15 22:06:44 +00:00
commit b55ca6ffaa
5 changed files with 8 additions and 3 deletions

View file

@ -2897,7 +2897,7 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args)
case ACSF_GetChar:
{
const char *p = FBehavior::StaticLookupString(args[0]);
if (p != NULL && args[1] >= 0 && args[1] < strlen(p))
if (p != NULL && args[1] >= 0 && args[1] < int(strlen(p)))
{
return p[args[1]];
}