forked from rosebudai/OpenRCT2-Web
Validate water image id while loading palette
This commit is contained in:
1 parent
ee7ad17a30
commit
73efe0755d
1 file changed
+3
-1
@@ -15,6 +15,7 @@
|
||||
#pragma endregion
|
||||
|
||||
#include "../common.h"
|
||||
#include "../core/Guard.hpp"
|
||||
#include "../interface/window.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../object.h"
|
||||
@@ -518,7 +519,8 @@ void load_palette(){
|
||||
|
||||
uint32 palette = 0x5FC;
|
||||
|
||||
if ((intptr_t)water_type != -1){
|
||||
if ((intptr_t)water_type != -1) {
|
||||
openrct2_assert(water_type->image_id != (uint32)-1, "Failed to load water palette");
|
||||
palette = water_type->image_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user