if (CheckAttribute(characters[iPassenger], "loyality"))
{
if (characters[iPassenger].alignment != alignment)
{
characters[iPassenger].loyality = makeint(characters[iPassenger].loyality) - 1; }
else
{
characters[iPassenger].loyality = makeint(characters[iPassenger].loyality) + 1; }
}
把原来判断是否符合.符合加.否则减.改成了判断是否不符合.不符合减.否则加.问题勉强解决.还是没找到病根.懒得翻了.