Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelrau committed Jul 12, 2024
1 parent 76770c4 commit dcab6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/component/logprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace logprint
try
{
const scripting::entity self_{ game::Scr_GetEntityId(self->s.number, 0) };
assert(self, "self must be defined in Scr_PlayerDamage");
assert(self && "self must be defined in Scr_PlayerDamage");

int lpselfnum = self_.call("getentitynumber").as<int>();
std::string lpselfname = self_.get("name").as<std::string>();
Expand Down Expand Up @@ -131,7 +131,7 @@ namespace logprint
try
{
const scripting::entity self_{ game::Scr_GetEntityId(self->s.number, 0) };
assert(self, "self must be defined in Scr_PlayerKilled");
assert(self && "self must be defined in Scr_PlayerKilled");

int lpselfnum = self_.call("getentitynumber").as<int>();
std::string lpselfname = self_.get("name").as<std::string>();
Expand Down

0 comments on commit dcab6a3

Please sign in to comment.