Skip to content

Commit 318a4c1

Browse files
committed
Fix Give Credits trigger action to work in singleplayer
1 parent 85714ec commit 318a4c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trigger_actions_extended.asm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ hack 0x0061913B ; Extend trigger action jump table
183183
cmp eax, 0
184184
jnz .Give_Credits
185185
186-
.Get_House_Pointer:
186+
.Get_House_Pointer:
187+
mov ecx, eax ; the function called below expects the housetype index to be in ecx instead of eax
187188
call 0x004C4730 ; House_Pointer_From_HouseType_Index
188189
189190
.Give_Credits:

0 commit comments

Comments
 (0)