Regression fix: The Dig invalid opcodes
|Reported by:||eriktorbjorn||Owned by:||SF/ender|
This fixes a bug which would cause The Dig to crash the second time an actor spoke a particular line. This probably accounts for most or all of the recently introduced "invalid opcode" crashes.
The problem was that o6_talkActor() and o6_talkEgo() was corrupting the scripts by having strtok() write a 0 into them.
(The exact same code is added both to o6_talkActor() and o6_talkEgo(), so maybe it'd be more elegant to put it in translateText() instead...)
Ticket imported from: #618987. Ticket imported from: patches/186.