Skip to content

Commit

Permalink
Added admin-account-check to HandleTweakCharText()
Browse files Browse the repository at this point in the history
  • Loading branch information
xuridabur committed Jul 16, 2008
1 parent 350fc2e commit 3a9f706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gumps.cpp
Expand Up @@ -1698,7 +1698,7 @@ void tweakCharMenu( CSocket *s, CChar *c )
void CPIGumpInput::HandleTweakCharText( UI08 index )
{
CChar *mChar = tSock->CurrcharObj();
if( mChar->GetCommandLevel() >= CL_GM )
if( mChar->GetCommandLevel() >= CL_GM || mChar->GetAccount().wAccountIndex == 0 )
{
CChar *j = calcCharObjFromSer( id );
if( !ValidateObject( j ) )
Expand Down

0 comments on commit 3a9f706

Please sign in to comment.