View Single Post
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-25-2018 , 11:32   Re: What is making the game crash?
Reply With Quote #4

This may fix it.....

change the zero to a one in each of these:
int rnd = GetRandomInt(0,46);


Do this for each of your classes since you don't have a Case 0 for any of them.

for example, change:
Code:
			case TFClass_Soldier:
			{
				int rnd = GetRandomInt(0,46);
				switch (rnd)
				{

To read:

			case TFClass_Soldier:
			{
				int rnd = GetRandomInt(1,46);
				switch (rnd)
				{
PC Gamer is offline