mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- Fixed: PickNext/PrevWeapon() did not check for NULL player actors.
SVN r1046 (trunk)
This commit is contained in:
parent
1462e5efa4
commit
9c6e40e192
2 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
June 23, 2008
|
||||
- Fixed: PickNext/PrevWeapon() did not check for NULL player actors.
|
||||
- Fixed compilation issues with GCC.
|
||||
- Removed special case for nobotnodes in MAPINFO.
|
||||
|
||||
|
|
|
@ -733,6 +733,10 @@ AWeapon *PickNextWeapon (player_t *player)
|
|||
{
|
||||
int startslot, startindex;
|
||||
|
||||
if (player->mo == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (player->ReadyWeapon == NULL || FindMostRecentWeapon (player, &startslot, &startindex))
|
||||
{
|
||||
int start;
|
||||
|
@ -765,6 +769,10 @@ AWeapon *PickPrevWeapon (player_t *player)
|
|||
{
|
||||
int startslot, startindex;
|
||||
|
||||
if (player->mo == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (player->ReadyWeapon == NULL || FindMostRecentWeapon (player, &startslot, &startindex))
|
||||
{
|
||||
int start;
|
||||
|
|
Loading…
Reference in a new issue