diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-02 14:28:19 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-02 14:28:19 +0200 |
commit | 52390062b39a3398379934e59a15faa01613e586 (patch) | |
tree | ba7c8c16921d09a9ec1e2d33323ab142048a3290 /src/vehicles/Automobile.cpp | |
parent | SetPosition, part 1 (diff) | |
download | re3-52390062b39a3398379934e59a15faa01613e586.tar re3-52390062b39a3398379934e59a15faa01613e586.tar.gz re3-52390062b39a3398379934e59a15faa01613e586.tar.bz2 re3-52390062b39a3398379934e59a15faa01613e586.tar.lz re3-52390062b39a3398379934e59a15faa01613e586.tar.xz re3-52390062b39a3398379934e59a15faa01613e586.tar.zst re3-52390062b39a3398379934e59a15faa01613e586.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 4593966f..e38c93ae 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -1213,7 +1213,7 @@ CAutomobile::Teleport(CVector pos) { CWorld::Remove(this); - GetPosition() = pos; + SetPosition(pos); SetOrientation(0.0f, 0.0f, 0.0f); SetMoveSpeed(0.0f, 0.0f, 0.0f); SetTurnSpeed(0.0f, 0.0f, 0.0f); |