game: Fix wrong index to flag slot introduced by last commit.
game: Fix game_cancel_transported_resource() to handle case where destination is an inventory
game: Fix overflow of military statistic when calculating chart value

Use 64-bit integer to avoid overflowing early. This is a temporary fix as the overflow can still be hit later in the game since the array that stores the historical data is still 32-bit.