Dubious code failing Smaller type check /RTCc

imtrobin

28-04-2006 20:49:12

Hi,

I like to bring to attention line line 403 of OgreOSMScene.cpp fails when compiled with Smaller type check (/RTCc) flag. Under the debugger, the type read is 0, so after the (1 << (type - 1)) makes it negative, and out of range of SceneType enumeration.