10 ms·
Please fix the integer overflow. Total income over the game was tracked in a 32-bit signed int, so if you earned too much money suddenly the total would turn ne
by KSteffensen 7mo ago
Please fix the integer overflow. Total income over the game was tracked in a 32-bit signed int, so if you earned too much money suddenly the total would turn negative and your stocks would crash.
- jrs235 7mo agoI never found the bug in that direction. I discovered it the opposite way: when starting out, selling shares (or was it taking loans?) all the shares you can. Get around 30+ million in the hole and continue to lose money. Eventually an arithmetic overflow will occur and then suddenly you'll have a net worth of like $30-40 million and have the money form selling stock to build to your heart's content.
- saidnooneever 7mo agohahah this was it! make so many debt ur suddenly rich haha. kinda like evil corpos do today no? hahahha
- boredhedgehog 7mo agoAs described by the posts, the original used 16-bit signed integers. The fix was to switch to 32-bit.
- zeristor 7mo agoSounds like the famous Gandhi bug in Civilisation: https://en.wikipedia.org/wiki/Nuclear_Gandhi https://en.wikipedia.org/wiki/Nuclear_Gandhi edit: turns out this was a fabrication, good thing I read my cited source! "On September 8, 2020, Sid Meier's autobiography, Sid Meier's Memoir!: A Life in Computer Games, was released, containing confirmation that the Gandhi software bug was fabricated and a detailed background of the urban legend's formation" from the above link