Skip to content

Commit

Permalink
fix(vehicle): fix vehicle roller
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrycu committed Apr 24, 2022
1 parent 77042c5 commit cd8b809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
`0.2.9` - ???
* NEW FEATURE: Convert tokens to Holograms! (thanks `Solos#0001` for the idea and code)
* Fix for shop not including item attachments
* Fix for vehicle roller failing under certain conditions ([#112](https://github.com/wrycu/StarWarsFFG-Enhancements/issues/112))

`0.2.8` - 2022-02-13
* NEW FEATURE: Add Stimpack tracking - auto-applies a status when healing items are used
Expand Down
5 changes: 4 additions & 1 deletion scripts/vehicle_roller.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ function get_actors(vehicle) {
// crew has been defined, let's try to build a list
for (var x=0; x < flag_data.length; x++) {
let tmp_actor = game.actors.get(flag_data[x].actor_id);
if (tmp_actor.isOwner) {
if (tmp_actor === undefined) {
log(module_name, 'Found deleted actor via crew settings, ignoring');
}
else if (tmp_actor.isOwner) {
// we found an owner
actors.push(tmp_actor);
log(module_name, 'Found candidate actor ' + tmp_actor.name + ' via crew settings');
Expand Down

0 comments on commit cd8b809

Please sign in to comment.