fixed inheritance not being used in the base menu style when removing clients from the watch list
3 * ===============================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * ===============================================================
7 * This file is not open source and may not be copied without explicit
8 * written permission of AlliedModders LLC. This file may not be redistributed
9 * in whole or significant part.
10 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
17 #include "sm_memtable.h"
19 BaseMemTable::BaseMemTable(unsigned int init_size)
21 membase = (unsigned char *)malloc(init_size);
26 BaseMemTable::~BaseMemTable()
32 int BaseMemTable::CreateMem(unsigned int addsize, void **addr)
36 while (tail + addsize >= size)
39 membase = (unsigned char *)realloc(membase, size);
46 *addr = (void *)&membase[idx];
52 void *BaseMemTable::GetAddress(int index)
54 if (index < 0 || (unsigned int)index >= tail)
59 return &membase[index];
62 void BaseMemTable::Reset()
67 BaseStringTable::BaseStringTable(unsigned int init_size) : m_table(init_size)
71 BaseStringTable::~BaseStringTable()
75 int BaseStringTable::AddString(const char *string)
77 size_t len = strlen(string) + 1;
81 idx = m_table.CreateMem(len, (void **)&addr);
87 /*const char *BaseStringTable::GetString(int str)
89 return (const char *)m_table.GetAddress(str);
92 void BaseStringTable::Reset()