Game Development Community

Compile Bug in latest (2-april, 10:30 PM EST) HEAD

by Ken Finney · in Torque Game Engine · 04/02/2002 (7:48 pm) · 1 replies

C:\Torque_April_2_Head\torque\engine\interior\interiorInstance.cc(593) : error C2593: 'operator &&' is ambiguous

the offending line:

593:      if(mInteriorRes && mLMHandle != 0xFFFFFFFF)

I changed to this and it compiled:

593:      if((mInteriorRes != NULL) && (mLMHandle != 0xFFFFFFFF))

(I know, parens not necessary, but it reads easier that way...)

#1
04/21/2008 (9:24 pm)
I got a similar error but in the SFXProfile. Line 180 in sfxprofile.cpp

if ( mResource && SFX )
mBuffer = SFX->_createBuffer( this );

i changed to

if ( (mResource != NULL) && (SFX!= NULL) )
mBuffer = SFX->_createBuffer( this );

this fixed the issue. just wondering if that's the correct method.