Divinity: Original Sin 2

Divinity: Original Sin 2

Create Mods. Have Fun.
Because no one has as many friends as the man with many mods!
Learn More
meow 29 Apr, 2021 @ 2:26pm
Mod request: Integer overflow fix
It seems Larian doesn't have appropriate case handling for overflow in cases where they use 8 bit integers.

Cases where I know this to be the case are in stats and inventory limits. Try filling a bag with 256 items, save and reload and then access the bag again and you'll notice it is now a cursed bag you can never access because it crashes your game. Similarly try going into the respec mirror with -1 in a stat and refunding the point and you'll find you now have 255 stat points.

This is... unsettling. Is there a way a mod could fix this, somehow? If only by preventing the overflow entirely by restricting such behavior in the first place?