1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fixed #855 & 861. Unsigned values were bad idea to prevent overflow.

This commit is contained in:
DjWarmonger
2012-02-20 16:26:14 +00:00
parent 329f39bb2a
commit 386ac80cf9
5 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
#include <climits>
typedef si32 TResource;
typedef ui64 TResourceCap; //to avoid overflow when adding integers
typedef si64 TResourceCap; //to avoid overflow when adding integers. Signed values are easier to control.
namespace Res
{