src/fixedt.h
branchgamebalance
changeset 9882 059933c94c5d
parent 9880 bd97cc28b569
child 9887 3d32aa4ae67c
--- a/src/fixedt.h	Sun Mar 11 14:02:43 2007 +0000
+++ b/src/fixedt.h	Tue Mar 13 12:03:24 2007 +0000
@@ -285,7 +285,7 @@
 	 */
 	template <typename T> FixedT& operator *=(const T &value)
 	{
-		Raw::m_data = (Raw::m_data * (Tstorage)FixedHelperT<T>::Raw(value)) >> FixedHelperT<T>::dec_bits;
+		Raw::m_data = ((int64)Raw::m_data * (Tstorage)FixedHelperT<T>::Raw(value)) >> FixedHelperT<T>::dec_bits;
 		return *this;
 	}