Home / Civilization / Game history

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.

By Patchlo Editorial Desk · Published October 24, 2026 · Sources checked October 24, 2026

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.

Civilization, Amiga version: an original game screenshot. MicroProse; image source: Wikipedia
Civilization, Amiga version: an original game screenshot. MicroProse; image source: Wikipedia. Context image, not evidence of the alleged DOS Gandhi bug. Image source ↗

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.

3–2,000 characters. Your name and comment will be public. Please avoid personal contact details, advertising and abuse. Comment policy & privacy

Reader comments

Loading comments…