Skip to content

Commit

Permalink
Bodysearch: Fixed hook using wrong variable (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll authored Feb 6, 2024
1 parent 6c02cda commit 5c130ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- Fixed `IsPlayer` failing if a non-entity is passed to it (by @TimGoll)
- Fixed draw.Arc when `gmod_mcore_test` is set to 1 (by @WardenPotato)
- Fixed weapon help box width for wide bindings with short descriptions (by @TimGoll)
- Fixed `GM:TTTBodySearchPopulate` using the wrong data variable (by @TimGoll)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/client/cl_search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function SEARCHSCREEN:Show(data)
---
-- @realm client
-- stylua: ignore
hook.Run("TTTBodySearchPopulate", searchAdd, search)
hook.Run("TTTBodySearchPopulate", searchAdd, data)
for _, v in pairs(searchAdd) do
if istable(v.text) then
self:MakeInfoItem(
Expand Down

0 comments on commit 5c130ba

Please sign in to comment.