• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Calling Player() with -5???

Status
Not open for further replies.
Level 1
Joined
Nov 25, 2007
Messages
1
hi people i am trying to take up a project left off by someone else and the code is a mess...going through and making some changes i notice in one spot he has a function that calls:
JASS:
GetPlayerName(Player(GetPlayerId(GetTriggerPlayer())+FN))

where FN = -5 as a global constant, and it is not set to anything else anywhere else in the code.
so basically he is calling the function Player with whatever the GetPlayerID is, minus 5? that would usually make the call to Player() with something in the negative numbers....

what effect does that have? calling Player(-4) for example? will it crash the game?
 
Status
Not open for further replies.
Top