Thread: TProjectile
View Single Post
  #2  
Old 06-12-2008, 07:05 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
player.level.projectiles[player.level.projectiles.size()]

wouldn't work anyways as that doesn't exist.

An array with a size of 1 is only gonna have index 0, same as an array with size 2 is only gonna have 0 and 1.

You want:
player.level.projectiles[player.level.projectiles.size() - 1]

Though I'm pretty sure almost all TProjectile variables are read-only.
__________________
Do it with a DON!
Reply With Quote