Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,13 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData )
Object* source = findObjectByID(sourceID);
if (source != nullptr)
Comment thread
Caball009 marked this conversation as resolved.
{
// TheSuperHackers @fix stephanmeesters 01/03/2026 Validate the origin of the source object
if ( source->getControllingPlayer() != thisPlayer )
Comment thread
xezon marked this conversation as resolved.
{
DEBUG_CRASH( ("MSG_DO_SPECIAL_POWER: Player at index '%d' doesn't control the object with sourceID '%d'.", thisPlayer->getPlayerIndex(), (Int)sourceID) );
Comment thread
xezon marked this conversation as resolved.
Outdated
break;
}

AIGroupPtr theGroup = TheAI->createGroup();
theGroup->add(source);
theGroup->groupDoSpecialPower( specialPowerID, options );
Expand Down Expand Up @@ -725,6 +732,13 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData )
Object* source = findObjectByID(sourceID);
if (source != nullptr)
{
// TheSuperHackers @fix stephanmeesters 01/03/2026 Validate the origin of the source object
if ( source->getControllingPlayer() != thisPlayer )
{
DEBUG_CRASH( ("MSG_DO_SPECIAL_POWER_AT_LOCATION: Player at index '%d' doesn't control the object with sourceID '%d'.", thisPlayer->getPlayerIndex(), (Int)sourceID) );
break;
}

Comment thread
stephanmeesters marked this conversation as resolved.
Outdated
AIGroupPtr theGroup = TheAI->createGroup();
theGroup->add(source);
theGroup->groupDoSpecialPowerAtLocation( specialPowerID, &targetCoord, angle, objectInWay, options );
Expand Down Expand Up @@ -768,6 +782,13 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData )
Object* source = findObjectByID(sourceID);
if (source != nullptr)
{
// TheSuperHackers @fix stephanmeesters 01/03/2026 Validate the origin of the source object
if ( source->getControllingPlayer() != thisPlayer )
{
DEBUG_CRASH( ("MSG_DO_SPECIAL_POWER_AT_OBJECT: Player at index '%d' doesn't control the object with sourceID '%d'.", thisPlayer->getPlayerIndex(), (Int)sourceID) );
Comment thread
stephanmeesters marked this conversation as resolved.
Outdated
break;
}

AIGroupPtr theGroup = TheAI->createGroup();
theGroup->add(source);
theGroup->groupDoSpecialPowerAtObject( specialPowerID, target, options );
Expand Down Expand Up @@ -1211,6 +1232,13 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData )
Object* source = findObjectByID(sourceID);
if (source != nullptr)
{
// TheSuperHackers @fix stephanmeesters 01/03/2026 Validate the origin of the source object
if ( source->getControllingPlayer() != thisPlayer )
{
DEBUG_CRASH( ("MSG_DO_SPECIAL_POWER_OVERRIDE_DESTINATION: Player at index '%d' doesn't control the object with sourceID '%d'.", thisPlayer->getPlayerIndex(), (Int)sourceID) );
break;
}

AIGroupPtr theGroup = TheAI->createGroup();
theGroup->add(source);
theGroup->groupOverrideSpecialPowerDestination( spType, loc, CMD_FROM_PLAYER );
Expand Down
Loading