diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-07-02 13:28:45 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-07-02 13:28:45 -0300 |
| commit | e782274ade8d7307e157a997d6ac3bcaa4130024 (patch) | |
| tree | 7999cc2737817db3e4c22bf94236ade6d5dd0d95 /src/houses.cc | |
| parent | aaf198773fd8e041b0976cc0682e83f8acf394d0 (diff) | |
| download | game-e782274ade8d7307e157a997d6ac3bcaa4130024.tar.gz game-e782274ade8d7307e157a997d6ac3bcaa4130024.zip | |
`query.cc`
Diffstat (limited to 'src/houses.cc')
| -rw-r--r-- | src/houses.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/houses.cc b/src/houses.cc index b47138e..4c06419 100644 --- a/src/houses.cc +++ b/src/houses.cc @@ -1670,16 +1670,16 @@ void LoadHouses(void){ Houses += 1; } - uint16 *HouseIDs = (uint16*)alloca(Houses * sizeof(uint16)); - char **Names = (char**)alloca(Houses * sizeof(char*)); - int *Rents = (int*)alloca(Houses * sizeof(int)); - char **Descriptions = (char**)alloca(Houses * sizeof(char*)); - int *Sizes = (int*)alloca(Houses * sizeof(int)); - int *PositionsX = (int*)alloca(Houses * sizeof(int)); - int *PositionsY = (int*)alloca(Houses * sizeof(int)); - int *PositionsZ = (int*)alloca(Houses * sizeof(int)); - char (*Towns)[30] = (char(*)[30])alloca(Houses * 30); - bool *Guildhouses = (bool*)alloca(Houses * sizeof(bool)); + uint16 *HouseIDs = (uint16*)alloca(Houses * sizeof(uint16)); + const char **Names = (const char**)alloca(Houses * sizeof(const char*)); + int *Rents = (int*)alloca(Houses * sizeof(int)); + const char **Descriptions = (const char**)alloca(Houses * sizeof(const char*)); + int *Sizes = (int*)alloca(Houses * sizeof(int)); + int *PositionsX = (int*)alloca(Houses * sizeof(int)); + int *PositionsY = (int*)alloca(Houses * sizeof(int)); + int *PositionsZ = (int*)alloca(Houses * sizeof(int)); + char (*Towns)[30] = (char(*)[30])alloca(Houses * 30); + bool *Guildhouses = (bool*)alloca(Houses * sizeof(bool)); for(int HouseNr = 0; HouseNr < Houses; HouseNr += 1){ THouse *H = House.at(HouseNr); HouseIDs[HouseNr] = H->ID; |
