Skip to content

Commit

Permalink
Fix poldbg localvarmembers
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEady committed Aug 1, 2022
1 parent d7a4050 commit fff6d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pol-core/pol/poldbg.cpp
Expand Up @@ -48,7 +48,7 @@ using namespace Bscript;
const char* poldbg_base_members[] = { "x", "y", "z", "name", "objtype",
"graphic", "serial", "color", "facing", "height",
"weight", "multi", "realm", "dirty" };
// 28 members
// 58 members
const char* poldbg_itemref_members[] = { "amount",
"layer",
"container",
Expand Down Expand Up @@ -1194,7 +1194,7 @@ std::string DebugContext::cmd_localvarmembers( const std::string& rest, Results&
os.str( "" );
}

for ( i = 0; i < 27; i++ ) // i = 27 members
for ( i = 0; i < 58; i++ ) // i = 27 members
{
memname = poldbg_itemref_members[i];
os << memname << " " << var.get_member( memname ).get()->impptr()->getStringRep();
Expand Down

0 comments on commit fff6d99

Please sign in to comment.