Skip to content

Commit

Permalink
wtf (#5579)
Browse files Browse the repository at this point in the history
  • Loading branch information
MjnMixael authored Aug 31, 2023
1 parent f09c7b3 commit acbab03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/scripting/api/objs/shipwepselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ ADE_INDEXER(l_Loadout_Amount,
ship_info* sip = &Ship_info[current.getBank()->ship_class];
int widx = current.getBank()->wep[idx];
if (widx >= 0 && widx < (int)Weapon_info.size()) {
weapon_info* wip = &Weapon_info[idx];
weapon_info* wip = &Weapon_info[widx];
int capacity = 0;
// Calculate max capacity of the weapon in the current bank
if (wip->subtype == WP_LASER) {
Expand Down

0 comments on commit acbab03

Please sign in to comment.