Merge pull request #338 from SHADE-DP/SP3-2-Physics
Fixed crash occurring with editing collision tag file
This commit is contained in:
commit
36db5021ac
|
@ -245,10 +245,9 @@ namespace SHADE
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mask = static_cast<uint16_t>(std::stoi(maskString));
|
|
||||||
for (int i = 0; i < SHCollisionTag::NUM_LAYERS; ++i)
|
for (int i = 0; i < SHCollisionTag::NUM_LAYERS; ++i)
|
||||||
{
|
{
|
||||||
const bool LAYER_STATE = mask & 1U << i;
|
const bool LAYER_STATE = maskString[i] == '1';
|
||||||
collisionTags[tagIndex].SetLayerState(i, LAYER_STATE);
|
collisionTags[tagIndex].SetLayerState(i, LAYER_STATE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue