Fix slow calculation

Full details: http://www.eqemulator.org/forums/showthread.php?t=38734