Skip to content

Commit 00ec62e

Browse files
authored
Speed=0 extension code correction (#1817)
Corrected two code errors. --------- Co-authored-by: Fly-Star <[email protected]>
1 parent 275266d commit 00ec62e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

YRpp

Submodule YRpp updated from d5a6fc5 to cecd628

src/Ext/Techno/Hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ DEFINE_HOOK(0x708FC0, TechnoClass_ResponseMove_Pickup, 0x5)
12341234
{
12351235
auto const pUnit = static_cast<UnitClass*>(pThis);
12361236

1237-
if (TechnoExt::TechnoExt::CannotMove(pUnit))
1237+
if (TechnoExt::CannotMove(pUnit))
12381238
return SkipResponse;
12391239
}
12401240

src/Ext/Unit/Hooks.DisallowMoving.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DEFINE_HOOK(0x740A93, UnitClass_Mission_Move_DisallowMoving, 0x6)
1010
{
1111
GET(UnitClass*, pThis, ESI);
1212

13-
return TechnoExt::TechnoExt::CannotMove(pThis) ? 0x740AEF : 0;
13+
return TechnoExt::CannotMove(pThis) ? 0x740AEF : 0;
1414
}
1515

1616
DEFINE_HOOK(0x741AA7, UnitClass_Assign_Destination_DisallowMoving, 0x6)

0 commit comments

Comments
 (0)