aws / lumberyard

Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch – with full source.
Other
2.03k stars 540 forks source link

Avoid derefencing nullptr in EMFX #431

Open yuriy0 opened 5 years ago

yuriy0 commented 5 years ago

Issue #, if available:

Description of changes: See title.

We could just check if entityTransform' is non-null before accessing it, but the more idiomatic way to access the transform is through bus calls. So, this merge request also replacesAZ::Entity::GetTransform` with EBus calls.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.