Skip to content

Commit 2765ec1

Browse files
committed
Add credits & fix minor code style thing
1 parent c17ceb4 commit 2765ec1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CREDITS.md

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ This page lists all the individual contributions to the project by their author.
254254
- `<Player @ X>` as owner for pre-placed objects
255255
- Custom exit cell for infantry factory
256256
- Vehicles keeping target on move command
257+
- Subterranean harvester pathfinding fix
257258
- **Morton (MortonPL)**:
258259
- `XDrawOffset` for animations
259260
- Shield passthrough & absorption

src/Ext/Techno/Hooks.Misc.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,7 @@ DEFINE_HOOK(0x4C7512, EventClass_Execute_StopCommand, 0x6)
464464
{
465465
GET(TechnoClass* const, pThis, ESI);
466466

467-
auto const pUnit = abstract_cast<UnitClass*>(pThis);
468-
469-
if (pUnit)
467+
if (auto const pUnit = abstract_cast<UnitClass*>(pThis))
470468
{
471469
// Reset target for deploy weapons.
472470
if (pUnit->CurrentMission == Mission::Unload && pUnit->Type->DeployFire && !pUnit->Type->IsSimpleDeployer)

0 commit comments

Comments
 (0)