Switch + Constant

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1876
Joined: Sat Feb 23, 2008 11:15 pm

Switch + Constant

Post by Kjell »

:!:

Using constants in a switch case doesn't work in standalone builds. For example ..

Code: Select all

switch(0)
{
  case 0:
    float A = PI;
    break;
}
.. in OnLoaded generates a broken executable.

K
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

That's a nasty bug you've found. I've found the reason and I'll fix it asap!
Post Reply