mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 13:19:40 +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
1 changed files with 2 additions and 2 deletions
|
@ -2057,8 +2057,8 @@ namespace MWWorld
|
||||||
// door to exterior
|
// door to exterior
|
||||||
if (it->mRef.getDestCell().empty()) {
|
if (it->mRef.getDestCell().empty()) {
|
||||||
int x, y;
|
int x, y;
|
||||||
const float *pos = it->mRef.getDoorDest().pos;
|
ESM::Position doorDest = it->mRef.getDoorDest();
|
||||||
positionToIndex(pos[0], pos[1], x, y);
|
positionToIndex(doorDest.pos[0], doorDest.pos[1], x, y);
|
||||||
source = getExterior(x, y);
|
source = getExterior(x, y);
|
||||||
}
|
}
|
||||||
// door to interior
|
// door to interior
|
||||||
|
|
Loading…
Reference in a new issue