X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FLevel%2FDialog.cpp;h=64d30155bce7eb10e5f93452f6720196a86543e6;hp=680e5845581e40880a5076e421b888b321d22936;hb=475fb97fd19a8bc2c58c603d0bc5dcf8cc63b40d;hpb=eae73ddd7a006ee6de9ffb01f3ec5f8e5fdc6d85 diff --git a/Source/Level/Dialog.cpp b/Source/Level/Dialog.cpp index 680e584..64d3015 100644 --- a/Source/Level/Dialog.cpp +++ b/Source/Level/Dialog.cpp @@ -173,7 +173,7 @@ void Dialog::play() { for (unsigned i = 0; i < scenes.size(); i++) { int playerId = scenes[i].participantfocus; - Person::players[playerId]->coords = participantlocation[playerId]; + Person::players.at(playerId)->coords = participantlocation[playerId]; Person::players[playerId]->yaw = participantyaw[playerId]; Person::players[playerId]->targetyaw = participantyaw[playerId]; Person::players[playerId]->velocity = 0;