Jan 24
Copy&Paste Code Failure
Spent the last half hour trying to figure out why the compiler was creating two objects instead of one, every time this code ran:
| mmoBlockInternal *bi = new mmoBlockInternal( blockType, crossSection, offset, materialName, cap );new mmoBlockInternal( blockType, crossSection, offset, materialName, cap ); |
The second ‘new’ statement, of course, was just barely off the right-hand side of my editor window.

January 24th, 2010 at 6:29 pm
Takes balls to admit you made a mistake like that :p
January 24th, 2010 at 8:10 pm
Oh, I make heaps of mistakes. Only the particularly entertaining or embarrassing ones end up on the site.
This one isn’t particularly entertaining unless you summon a mental image of me feverishly stepping in and out of code, trying to figure out why the game is allocating two objects when the code clearly is only asking for one, and only after half an hour noticing that the source window inexplicably has a horizontal scroll bar… :)
January 24th, 2010 at 8:41 pm
HAHA, i feel your pain ive done that on the more then one occcasion
usually when editing film or videos, i get a bunch of key frames missing, so i start freaking out but it is usually cos i didnt scroll all the way along
January 26th, 2010 at 12:06 pm
Aww, man… gotta love it when things like that happen