diff options
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r-- | src/game/Level1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index 9aa1d3eca2a..360810801a1 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -2110,7 +2110,7 @@ bool ChatHandler::HandleModifyBitCommand(const char* args) } // check online security - if (unit->GetTypeId() == TYPEID_PLAYER && HasLowerSecurity((Player *)unit, 0)) + if (unit->GetTypeId() == TYPEID_PLAYER && HasLowerSecurity(unit->ToPlayer(), 0)) return false; char* pField = strtok((char*)args, " "); |