Game Development Community

Small documentation bug

by Gary "ChunkyKs" Briggs · in Torque Game Engine · 05/18/2005 (2:35 pm) · 2 replies

www.garagegames.com/docs/tge/engine/classConsoleObject.php

The code in "The Basics" has this snippet in it:
addField("sample", TypeS8, Offset(TorqueObject, mSample), "A test field.");

The offset is the wrong way round; it should be:
addField("sample", TypeS8, Offset(mSample, TorqueObject), "A test field.");

Gary (-;

#1
05/18/2005 (4:34 pm)
Good call. On the List to fix.
#2
08/18/2005 (12:33 pm)
Ok, fixed! #81.