src/newgrf.cpp
changeset 8040 92c69fcd0d61
parent 7988 fa2cce262aa9
child 8074 6441201410d7
equal deleted inserted replaced
8039:fa18f4352154 8040:92c69fcd0d61
  5419 
  5419 
  5420 	if (_preload_sprite == NULL) {
  5420 	if (_preload_sprite == NULL) {
  5421 		/* No preloaded sprite to work with; allocate and read the
  5421 		/* No preloaded sprite to work with; allocate and read the
  5422 		 * pseudo sprite content. */
  5422 		 * pseudo sprite content. */
  5423 		buf = MallocT<byte>(num);
  5423 		buf = MallocT<byte>(num);
  5424 		if (buf == NULL) error("DecodeSpecialSprite: Could not allocate memory");
       
  5425 		FioReadBlock(buf, num);
  5424 		FioReadBlock(buf, num);
  5426 	} else {
  5425 	} else {
  5427 		/* Use the preloaded sprite data. */
  5426 		/* Use the preloaded sprite data. */
  5428 		buf = _preload_sprite;
  5427 		buf = _preload_sprite;
  5429 		_preload_sprite = NULL;
  5428 		_preload_sprite = NULL;