1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-27 23:50:41 -05:00

Fix script runtime errors

This commit is contained in:
Jbleezy
2024-03-12 14:53:25 -07:00
parent bf24608828
commit 41a31de65f
10 changed files with 35 additions and 21 deletions

View File

@ -697,7 +697,7 @@ buildablestub_update_prompt(player)
if (player has_player_equipment(self.weaponname))
{
if (self.weaponname == level.riotshield_name && player has_player_damaged_riotshield_equipped())
if (isdefined(level.riotshield_name) && self.weaponname == level.riotshield_name && player has_player_damaged_riotshield_equipped())
{
self.hint_string = &"ZOMBIE_REPAIR_RIOTSHIELD";
return true;