From 69f621f3618dfe4bb0fbabd62fd74085e3ba6d02 Mon Sep 17 00:00:00 2001 From: Uleat Date: Thu, 5 Jul 2018 22:40:15 -0400 Subject: [PATCH] Fix for ISO C++ warning in command_peekinv --- zone/command.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/command.cpp b/zone/command.cpp index 4bae60820..3705124fc 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -2534,9 +2534,9 @@ void command_peekinv(Client *c, const Seperator *sep) peekOutOfScope = (peekWorld * 2) // less than }; - static char* scope_prefix[] = { "Equip", "Gen", "Cursor", "Limbo", "Trib", "Bank", "ShBank", "Trade", "World" }; + static const char* scope_prefix[] = { "equip", "gen", "cursor", "limbo", "trib", "bank", "shbank", "trade", "world" }; - static int16 scope_range[][2] = { + static const int16 scope_range[][2] = { { EQEmu::invslot::EQUIPMENT_BEGIN, EQEmu::invslot::EQUIPMENT_END }, { EQEmu::invslot::GENERAL_BEGIN, EQEmu::invslot::GENERAL_END }, { EQEmu::invslot::slotCursor, EQEmu::invslot::slotCursor }, @@ -2548,7 +2548,7 @@ void command_peekinv(Client *c, const Seperator *sep) { EQEmu::invslot::SLOT_BEGIN, (EQEmu::invtype::WORLD_SIZE - 1) } }; - static bool scope_bag[] = { false, true, true, true, false, true, true, true, true }; + static const bool scope_bag[] = { false, true, true, true, false, true, true, true, true }; if (!c) return;