Game Development Community

Simple (yet annoying!) typo bug in console.cpp

by Craig Fortune · in Torque Game Engine Advanced · 04/07/2009 (12:56 pm) · 5 replies

I'm assuming this ia the right place to put bugs nowadays? If not, can the moderators please move this.

I kept getting some assert warnings in my console output about passing the wrong amount of arguments to a Con::executef call. Turns out there was a simple typo in console.cpp.

This is in 1.8.1

Line 1057, currently reads
const char *executef(OBJ, A a, A b, A c, A d, A e, A f, A g) { return _executef(obj, 6, 7, a, b, c, d, e, f, g); }

should read
const char *executef(OBJ, A a, A b, A c, A d, A e, A f, A g) { return _executef(obj, 7, 7, a, b, c, d, e, f, g); }


A quick check confirmed that this existed in TGEA 1.7 too. I'll wager a fiver it still exists post 1.8.1 as its a tad obscure :P

#1
04/07/2009 (3:56 pm)
It's in the known issues list, fixed in TGEA 1.8.x trunk, and fixed in Torque 3D trunk.

You can send your fiver to:

Alex Scarborough
245 W 5th Ave
Eugene, OR 97401
#2
04/07/2009 (5:06 pm)
I did a forum search and it turned up nothing, how odd. Oh well, good stuff to see it has been found already :)

You wouldn't want that fiver anyway, £ is weak at the moment.. </lame excuse> hehe.

Hang on... I see that SVN check-in on the 2_0 branch Mr Scarborough! :P
#3
04/07/2009 (5:08 pm)
Oh, it wasn't in the known issues list until you reported it. Thanks for finding it! (Also fixed it in R&D)
#4
04/07/2009 (5:13 pm)
const char *executef(OBJ, A a, A b, A c, A d, A e, A f, A g) { return _executef(obj, 6, 7, a, b, c, d, e, f, g); }
Still exists in tgea 1.8.1
#5
04/08/2009 (1:45 am)
Yeah I think Alex meant by TGEA 1.8.x trunk that it'll be fixed in 1.8.2 if that gets a release