summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 7c1d372..bb3e56f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3470,14 +3470,14 @@ int main(int argc, char *argv[])
//Setting an element for the stick man
if (isplayer==0)
{
- if (ptypes[sr].falldown>0 || sr == PT_NEUT || sr == PT_PHOT)
+ if ((sr<PT_NUM && ptypes[sr].falldown>0) || sr==SPC_AIR || sr == PT_NEUT || sr == PT_PHOT)
player[2] = sr;
else
player[2] = PT_DUST;
}
if (isplayer2==0)
{
- if (ptypes[sr].falldown>0 || sr == PT_NEUT || sr == PT_PHOT)
+ if ((sr<PT_NUM && ptypes[sr].falldown>0) || sr==SPC_AIR || sr == PT_NEUT || sr == PT_PHOT)
player2[2] = sr;
else
player2[2] = PT_DUST;