X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FGameTick.cpp;h=9b98e78c9e90a3817ddb209cb871adb538efaf6f;hp=58fb64aac4fd7a467e01cbb9cf14ce390c7a4ee5;hb=475fb97fd19a8bc2c58c603d0bc5dcf8cc63b40d;hpb=eae73ddd7a006ee6de9ffb01f3ec5f8e5fdc6d85 diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 58fb64a..9b98e78 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -214,7 +214,7 @@ inline float stepTowardf(float from, float to, float by) void Game::playdialoguescenesound() { XYZ temppos; - temppos = Person::players[Dialog::currentScene().participantfocus]->coords; + temppos = Person::players.at(Dialog::currentScene().participantfocus)->coords; temppos = temppos - viewer; Normalise(&temppos); temppos += viewer; @@ -3229,7 +3229,7 @@ void Game::Tick() hostile = 1; } - if (Person::players[Dialog::currentScene().participantfocus]->dead) { + if (Person::players.at(Dialog::currentScene().participantfocus)->dead) { Dialog::indialogue = -1; Dialog::directing = false; cameramode = 0;