Project

General

Profile

Feature #1711 ยป 0012-reqtext.c-Replace-NULL-with-nullptr.patch

Marko Lindqvist, 10/21/2025 10:42 PM

View differences:

common/reqtext.c
"Requires knowledge of the technology Communism."
pplayer may be NULL. Note that it must be updated every time
pplayer may be nullptr. Note that it must be updated every time
a new requirement type or range is defined.
*****************************************************************/
bool req_text_insert(char *buf, size_t bufsz, struct player *pplayer,
......
if (preq->source.value.citytile == CITYT_LAST) {
break;
} else {
static char *tile_property = NULL;
static char *tile_property = nullptr;
switch (preq->source.value.citytile) {
case CITYT_CENTER:
......
case VUT_CITYSTATUS:
if (preq->source.value.citystatus != CITYS_LAST) {
static char *city_property = NULL;
static char *city_property = nullptr;
switch (preq->source.value.citystatus) {
case CITYS_OWNED_BY_ORIGINAL:
    (1-1/1)