• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[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