Skip to content

Commit

Permalink
Fixed order of operations issue for wild doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltContainer committed Jan 11, 2024
1 parent 7676049 commit efbb0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/features/wild_forms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ uint16_t GetFormDouble(FieldManager::Object *__this, int32_t mons, int32_t karan
return __this->GetFormNo(mons, karana, anno);
}

return karana & 0xFFFF0000 >> 16;
return (karana & 0xFFFF0000) >> 16;
}

HOOK_DEFINE_REPLACE(PatchDataInit) {
Expand Down

0 comments on commit efbb0b6

Please sign in to comment.