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.