Double Starting Pistol Bug

I bought a pistol, started a mission, abandoned it within the first minute, and went to start it again. It gave me a starter pistol to replace the pistol i lost from abandoning the mission, and let me keep the old starter pistol i had in my inventory. I couldn’t get rid of either since I cant sell the starter pistol.

Suggested Solution:
```
has_pistol = false;
for (int i = 0; i < weapon_count; i++)
if (weapon[i].type == STARTING_PISTOL) has_pistol = true;
if (!has_pistol) giveWeapon()
```

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

Bugs

Date

4 months ago

Author

the lord of the rings

Subscribe to post

Get notified by email when there are changes.