Author Topic: num-ships-in-battle  (Read 1337 times)

0 Members and 1 Guest are viewing this topic.

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
What will this SEXP return if it targets a wing that has never arrived? 0 or something else? (it looks like it's not 0)

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
The switch statement doesn't handle OSWPT_TYPE_WING_NOT_PRESENT, so it will return 0.  I think 0 is the correct thing to return, too.

  

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
I agree. I think my initial assumption that it was !0 was based on a mistaken test case.