[1.6.7] T-engine bug with saving infinity

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
minmay
Wyrmic
Posts: 286
Joined: Fri Sep 07, 2012 1:34 am
Contact:

[1.6.7] T-engine bug with saving infinity

#1 Post by minmay »

Had an unloadable save due to an NPC saving its -math.huge high_value for a talent:

Code: Select all

["high_value"]=-inf
tostring() on infinity will result in "inf", and tostring() on negative infinity will result in "-inf", but unlike "999", "inf" in code won't be interpreted as a number literal, it will be interpreted as an identifier. Same goes for "nan". These need to be special cased for saving.

Post Reply