Fixed EventPointsWithinDist taking the wrong argument number for the distance

This commit is contained in:
smallmodel committed 2023-08-19 00:35:48 +02:00
1 parent aa25ef6c68
commit 7e6854f96b
1 file changed
+1 -1
+1 -1
View File
@@ -4142,7 +4142,7 @@ void ScriptThread::EventAIsCloserThanBToC(Event *ev)
void ScriptThread::EventPointsWithinDist(Event *ev)
{
Vector delta;
float dist = ev->GetFloat(2);
float dist = ev->GetFloat(3);
delta = ev->GetVector(1) - ev->GetVector(2);