1
0
Fork 0

Fix a 0 -> nullptr

This commit is contained in:
James Turner 2020-04-09 09:55:42 +01:00
parent 92e6cccfdc
commit b1df2ad88a

View file

@ -171,7 +171,7 @@ View* View::createFromProperties(SGPropertyNode_ptr config, int view_index)
double fov_deg = config->getDoubleValue("default-field-of-view-deg");
double near_m = config->getDoubleValue("ground-level-nearplane-m");
View* v = 0;
View* v = nullptr;
// supporting two types "lookat" = 1 and "lookfrom" = 0
const char *type = config->getParent()->getStringValue("type");
if (!strcmp(type, "lookat")) {