mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Silence a clang warning
warning: pointer is initialized by a temporary array, which will be destroyed at the end of the full-expression [-Waddress-of-array-temporary]
This commit is contained in:
parent
538aa6607e
commit
929aae6869
@ -2057,8 +2057,8 @@ namespace MWWorld
|
||||
// door to exterior
|
||||
if (it->mRef.getDestCell().empty()) {
|
||||
int x, y;
|
||||
const float *pos = it->mRef.getDoorDest().pos;
|
||||
positionToIndex(pos[0], pos[1], x, y);
|
||||
ESM::Position doorDest = it->mRef.getDoorDest();
|
||||
positionToIndex(doorDest.pos[0], doorDest.pos[1], x, y);
|
||||
source = getExterior(x, y);
|
||||
}
|
||||
// door to interior
|
||||
|
Loading…
x
Reference in New Issue
Block a user