Skip to content

Commit

Permalink
generator: fix groups without states
Browse files Browse the repository at this point in the history
  • Loading branch information
bnnm committed Jan 19, 2021
1 parent 9e53954 commit 16acaf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wwiser/wrebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ def _build_audio_config(self, node):
nstategroups = nstatechunk.finds(name='AkStateGroupChunk')
for nstategroup in nstategroups:
nstateid = nstategroup.find1(name='ulStateInstanceID')
if not nstateid: #possible to have groups without pStates (ex Xcom2's 820279197)
continue
bank_id = nstateid.get_root().get_id()
tid = nstateid.value()
bstate = self.builder._get_bnode_by_ref(bank_id, tid, self.sid)
Expand Down

0 comments on commit 16acaf5

Please sign in to comment.