Index: src/common/rpgrules/psmoney.cpp =================================================================== --- src/common/rpgrules/psmoney.cpp (revision 5633) +++ src/common/rpgrules/psmoney.cpp (working copy) @@ -83,10 +83,10 @@ int psMoney::GetTotal() const { - int64 total = circles*CIRCLES_VALUE_TRIAS + octas*OCTAS_VALUE_TRIAS - + hexas*HEXAS_VALUE_TRIAS + trias; + int64 total = (int64)circles*CIRCLES_VALUE_TRIAS + (int64)octas*OCTAS_VALUE_TRIAS + + (int64)hexas*HEXAS_VALUE_TRIAS + trias; if(total > INT_MAX) - total = INT_MAX; + total = INT_MAX; return (int)total; }