Skip to content

Commit

Permalink
code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Jul 22, 2024
1 parent f28c26d commit 6a9fcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/marvin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ bool Marvin::addItemOrNpcBySymbolName(World* world, std::string_view name, const
return false;

auto* sym = sc.findSymbol(id);
if(sym==nullptr||sym->parent()==uint32_t(-1))
if(sym==nullptr || sym->parent()==uint32_t(-1))
return false;

if(sym->type()!=zenkit::DaedalusDataType::INSTANCE)
return false;

const auto* cls = sym;
while(cls!=nullptr&&cls->parent()!=uint32_t(-1)) {
while(cls!=nullptr && cls->parent()!=uint32_t(-1)) {
cls = sc.findSymbol(cls->parent());
}

Expand Down

0 comments on commit 6a9fcca

Please sign in to comment.