Skip to content

Commit c3ce335

Browse files
committed
Fixed #7359 (createMarker triggers onMarkerHit)
1 parent 29f9e41 commit c3ce335

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MTA10_Server/mods/deathmatch/logic/CMarker.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ void CMarker::SetIcon ( unsigned char ucIcon )
291291

292292
void CMarker::Callback_OnCollision ( CColShape& Shape, CElement& Element )
293293
{
294+
// Do not call on ourselves #7359
295+
if ( this == &Element )
296+
return;
297+
294298
// Matching interior?
295299
if ( GetInterior () == Element.GetInterior () )
296300
{

0 commit comments

Comments
 (0)