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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user