From 68a3f8f582aa1b4e14e29c54876f8c96b3566b63 Mon Sep 17 00:00:00 2001 From: tkrokli Date: Mon, 25 Jul 2016 04:06:09 +0200 Subject: Core/Scripts: uint8 -> uint16 in cs_cheat.cpp After the latest size change in PLAYER_EXPLORED_ZONES_SIZE from 255 to 256, this needs to be an uint16 variable instead of uint8. --- src/server/scripts/Commands/cs_cheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/scripts/Commands/cs_cheat.cpp b/src/server/scripts/Commands/cs_cheat.cpp index 6e01d6404b3..3a54d6ae70b 100644 --- a/src/server/scripts/Commands/cs_cheat.cpp +++ b/src/server/scripts/Commands/cs_cheat.cpp @@ -272,7 +272,7 @@ public: ChatHandler(chr->GetSession()).PSendSysMessage(LANG_YOURS_EXPLORE_SET_NOTHING, handler->GetNameLink().c_str()); } - for (uint8 i = 0; i < PLAYER_EXPLORED_ZONES_SIZE; ++i) + for (uint16 i = 0; i < PLAYER_EXPLORED_ZONES_SIZE; ++i) { if (flag != 0) handler->GetSession()->GetPlayer()->SetFlag(PLAYER_EXPLORED_ZONES_1+i, 0xFFFFFFFF); -- cgit v1.2.3