Civilization / GAME HISTORY
Was Civilization’s Nuclear Gandhi Really an Integer Underflow Bug?
The arithmetic makes a neat story, but Sid Meier’s account rejects it as an explanation of the original game.
Short answer
The popular underflow story is contradicted by Sid Meier’s account of the original Civilization. Treat it as a disputed legend, not a verified example of the game turning Gandhi’s aggression from 1 into 255.
Scope: The claimed bug concerns the original 1991 Civilization. Later games’ deliberate Gandhi behavior is a separate question.

What does the familiar story claim?
It says Gandhi starts with a very low aggression value, Democracy subtracts two, and an unsigned byte wraps below zero to a large positive number. The next step is usually a nuclear attack.
That is a plausible demonstration of unsigned arithmetic. It is not, by itself, evidence that Civilization stored or changed its leader traits that way. A convincing explanation has to establish the actual data type and the actual adjustment, not just show that 1 minus 2 can wrap in a toy example.
What does Meier say about it?
In Sid Meier’s Memoir!, Meier says the leader traits did not use the unsigned-character setup required by the story. He also rejects the claimed Democracy-triggered change. The relevant passage is identified on page 263 in publicly quoted excerpts.
That makes the creator’s account different from the story repeated in many bug lists. It is reasonable to report that disagreement. It is not reasonable to claim that we inspected the original proprietary source code or proved how every patch behaves.
Why don’t later games settle the argument?
A later game can deliberately make Gandhi favor nuclear weapons as a joke. That does not prove an earlier game reached the same behavior through a numeric error. The joke, the player memory and the alleged cause are three different things.
This is a good case for asking one extra question when a bug story sounds unusually tidy: where is the original evidence? Repeated retellings can explain why a story is familiar without establishing that its proposed mechanism happened.
Join the conversation
Have a question, correction or a different take? Share it below. Comments appear immediately after submission.
Reader comments
Loading comments…